Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b939528

Browse files
fix: 02.extra-2.js pokemonPromise according to MD code (#215)
1 parent 92003d0 commit b939528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/final/02.extra-2.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ function PokemonInfo({pokemonName}) {
7272
if (!pokemonName) {
7373
return
7474
}
75-
run(fetchPokemon(pokemonName))
75+
const pokemonPromise = fetchPokemon(pokemonName)
76+
run(pokemonPromise)
7677
}, [pokemonName, run])
7778

7879
switch (status) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /