fix: unsetting game details when switching pages

This commit is contained in:
Chubby Granny Chaser 2024-05-14 18:03:09 +01:00
parent 016c511cec
commit 863f85f45d
2 changed files with 1 additions and 0 deletions

BIN
hydra.db

Binary file not shown.

View File

@ -92,6 +92,7 @@ export function GameDetails() {
}, [getGame, gameDownloading?.id]);
useEffect(() => {
setGameDetails(null);
setGame(null);
setIsLoading(true);
setIsGamePlaying(false);