feat: adjust isLoading on game details context

This commit is contained in:
Zamitto
2025-05-08 09:05:49 -03:00
parent 00c589a138
commit 48e9536169

View File

@@ -79,7 +79,7 @@ export function GameDetailsContextProvider({
const [stats, setStats] = useState<GameStats | null>(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);
});