Skip to content

Commit 9fef7ce

Browse files
committed
Fix "stuck" evolution warning
1 parent a45e880 commit 9fef7ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/app/src/widgets/evolutions-viewer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ export const EvolutionsViewer: FunctionComponent<{evolutionId: number, pokemonId
2626
name: link.species.name,
2727
});
2828

29-
if(link.evolves_to.length === 1) {
29+
if(link.evolves_to.length <= 1) {
3030
if(link.evolves_to[0]) addToChain(link.evolves_to[0]);
31+
setEeveeWarning(false);
3132
} else {
3233
//NOTE: The current approach won't work for the Eeveelutions. Choosing a random index to at least get some variety.
3334
const index = Math.floor(Math.random() * (link.evolves_to.length));

0 commit comments

Comments
 (0)