From 59e34025c63e368cb379d485eea79ea744b1e5df Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Sun, 4 Jul 2021 09:45:06 +0300 Subject: [PATCH] Rename idle view state --- src/components/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/app.js b/src/components/app.js index 30395f3..6d0b847 100644 --- a/src/components/app.js +++ b/src/components/app.js @@ -44,7 +44,7 @@ const App = () => { const [isSearching, setIsSearching] = React.useState(false); const [units, setUnits] = React.useState('metric'); const [state, dispatch] = React.useReducer(viewStateReducer, { - status: 'idle', + status: 'started', error: null, forecast: [], weather: {}, @@ -129,7 +129,7 @@ const App = () => { - {state.status === 'idle' ? : null} + {state.status === 'started' ? : null} {state.status === 'rejected' ? (