mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-08-13 14:19:12 +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, () => {
|
||||
if (evolved) {
|
||||
setEvolved(false);
|
||||
close();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue