kctoft / stepzen-weather-app

AI Weather App with ChatGPT-3.5 (Nix, Next.js 13.3, React, Tremor 2.0, StepZen, GraphQL)
https://stepzen-weather-app-silk.vercel.app/
1 stars 0 forks source link

Adding nix flake & fixed bug with state dropdown #2

Closed kctoft closed 1 year ago

kctoft commented 1 year ago

Action Items

Bug Fix

In the following line options = City.getCitiesOfState(selectedState?.value?.countryCode || '', selectedState?.value.isoCode || '') || []; from CityPicker, the State function getCitiesOfState takes parameters getCitiesOfState: (countryCode: string, stateCode: string) => ICity[]. Note that the state stateCode is the state isoCode; for reference I used California "CA" when I was debugging.