diff --git a/src/components/App.tsx b/src/components/App.tsx index d2b55b3..70e02cd 100755 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -196,7 +196,7 @@ export const App = () => { const allDefined = (startDate && endDate && units && selectedFrequency && weatherStation && timezone); - if (data && allDefined) { + if (data.length && allDefined) { const formatDataProps = { data, timezone, diff --git a/src/constants.ts b/src/constants.ts index 55e8a9a..0cde804 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -122,7 +122,7 @@ export const kWeatherStationCollectionAttrs = [ name: "elevation", unit: "ft", precision: "0", - type: "number" + type: "numeric", }, { name: "isdID"}, {