From f6cff235259e5810f9980b641d7df324b0a1b347 Mon Sep 17 00:00:00 2001 From: Emmanouil Zoumpoulakis Date: Sat, 3 Oct 2020 01:38:42 +0200 Subject: [PATCH] FIx small typo in 02.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fix `this'll` -> `this will` --- src/exercise/02.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exercise/02.js b/src/exercise/02.js index eae9dafc..b158defa 100644 --- a/src/exercise/02.js +++ b/src/exercise/02.js @@ -47,7 +47,7 @@ function PokemonInfo({pokemonName}) { // 🐨 so you're job is to create a useAsync function that makes this work. const [state, dispatch] = React.useReducer(pokemonInfoReducer, { status: pokemonName ? 'pending' : 'idle', - // 🐨 this'll need to be "data" instead of "pokemon" + // 🐨 this will need to be "data" instead of "pokemon" pokemon: null, error: null, }) @@ -76,7 +76,7 @@ function PokemonInfo({pokemonName}) { // the react-hooks/exhaustive-deps rule. We'll fix this in an extra credit. }, [pokemonName]) - // 🐨 this'll change from "pokemon" to "data" + // 🐨 this will change from "pokemon" to "data" const {pokemon, status, error} = state if (status === 'idle' || !pokemonName) {