From 332278d08ef25e7f38f8b86ebba4bbd626982b38 Mon Sep 17 00:00:00 2001 From: majean5 Date: Wed, 15 Mar 2023 11:08:07 +0100 Subject: [PATCH] aled --- iut-expo-starter/redux/reducers/appReducer.ts | 4 ++-- iut-expo-starter/screens/CityDetails.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iut-expo-starter/redux/reducers/appReducer.ts b/iut-expo-starter/redux/reducers/appReducer.ts index 3c3caa15..d850bfc5 100644 --- a/iut-expo-starter/redux/reducers/appReducer.ts +++ b/iut-expo-starter/redux/reducers/appReducer.ts @@ -1,5 +1,5 @@ import { City } from "../../data/stub"; -import { ADD_FAVORITE_CITY, FETCH_CITY, FETCH_FAVORITE_CITY, GET_CITIES } from "../constants"; +import { ADD_FAVORITE_CITY, FETCH_CITIES, FETCH_FAVORITE_CITY, GET_CITIES } from "../constants"; const initialState = { city: [], @@ -11,7 +11,7 @@ const appReducer = (state = initialState, action) => { case ADD_FAVORITE_CITY: // @ts-ignore return {...state, favoriteCity: state.favoriteCity = action.payload}; - case FETCH_CITY: + case FETCH_CITIES: // @ts-ignore return {...state, city: action.payload}; case FETCH_FAVORITE_CITY: diff --git a/iut-expo-starter/screens/CityDetails.tsx b/iut-expo-starter/screens/CityDetails.tsx index 170da2ec..b1844b0d 100644 --- a/iut-expo-starter/screens/CityDetails.tsx +++ b/iut-expo-starter/screens/CityDetails.tsx @@ -21,7 +21,7 @@ export default function CityDetails({route}){ {city.longitude} - {city.latitude} - + {meteo?.weatherType}