mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-10-08 22:00:17 +00:00
🐛 fix issue with evolving stuck in loop
This commit is contained in:
parent
cd47cb1839
commit
79d0430ba0
1 changed files with 1 additions and 0 deletions
|
@ -255,6 +255,7 @@ const Evolution = ({ show, close, pokemonId }: Props) => {
|
||||||
|
|
||||||
useEvent(Event.A, () => {
|
useEvent(Event.A, () => {
|
||||||
if (evolved) {
|
if (evolved) {
|
||||||
|
setEvolved(false);
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue