From b7b46f8b855883f23a2c3d892d09ad9c73cbd57c Mon Sep 17 00:00:00 2001 From: BrownKnight Date: Fri, 30 Aug 2024 18:02:10 +0100 Subject: [PATCH] Cleanup loading state miss --- ui/src/pages/LocalPlayGrid.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ui/src/pages/LocalPlayGrid.tsx b/ui/src/pages/LocalPlayGrid.tsx index cfd20f9..14cd7ad 100644 --- a/ui/src/pages/LocalPlayGrid.tsx +++ b/ui/src/pages/LocalPlayGrid.tsx @@ -45,6 +45,7 @@ export default function LocalPlayGrid() { return; } if (json) setGrid(json); + setLoading(false); }); }, [gridId, addError, apiClient]); @@ -141,7 +142,6 @@ export default function LocalPlayGrid() { Well done! You completed the grid in , with a total of{" "} {penalties ?? 0} mistakes. - {!isLoggedIn && ( @@ -150,7 +150,6 @@ export default function LocalPlayGrid() { to record this time on the leaderboard )} - {leaderboardEntry && ( <> @@ -160,6 +159,11 @@ export default function LocalPlayGrid() { )} + + + ); @@ -177,11 +181,6 @@ export default function LocalPlayGrid() { penalties={penalties} /> {staticTime && completedSection} - - -