From 48e95361696b726d9f679a4991e318f34b7208c3 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 8 May 2025 09:05:49 -0300 Subject: [PATCH] feat: adjust isLoading on game details context --- src/renderer/src/context/game-details/game-details.context.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/context/game-details/game-details.context.tsx b/src/renderer/src/context/game-details/game-details.context.tsx index fc4033d2..a317f8d3 100644 --- a/src/renderer/src/context/game-details/game-details.context.tsx +++ b/src/renderer/src/context/game-details/game-details.context.tsx @@ -79,7 +79,7 @@ export function GameDetailsContextProvider({ const [stats, setStats] = useState(null); - const [isLoading, setIsLoading] = useState(false); + const [isLoading, setIsLoading] = useState(true); const [gameColor, setGameColor] = useState(""); const [isGameRunning, setIsGameRunning] = useState(false); const [showRepacksModal, setShowRepacksModal] = useState(false); @@ -137,6 +137,7 @@ export function GameDetailsContextProvider({ } }) .finally(() => { + if (abortController.signal.aborted) return; setIsLoading(false); });