From 35171b3eebe6cc8b0a7c1aef9c1ebc41a56026d8 Mon Sep 17 00:00:00 2001 From: Ludea Date: Wed, 27 Nov 2024 18:33:40 +0100 Subject: [PATCH] fix: don't display loading button on error --- src/components/Footer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 002edfe5..f77eb622 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -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();