Skip to content

Commit

Permalink
fix: don't display loading button on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludea committed Nov 27, 2024
1 parent da97354 commit 35171b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ function Footer() {
setGameState("installed");
setGameLoading(false);
})
.catch((err: string) => setGlobalError(err));
.catch((err: string) => {
setGameState("not_installed ");
setGameLoading(false);
setGlobalError(err);
});
}
if (gameState === "installed") {
spawn();
Expand Down

0 comments on commit 35171b3

Please sign in to comment.