Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Dec 20, 2024
1 parent 37d6c17 commit 64ac368
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/ui/layouts/World.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ export const World = ({ backgroundImage }: { backgroundImage: string }) => {
]);
} catch (error) {
console.error("Fetch failed", error);
} finally {
// Ensure loading states are reset even if there's an error
setLoading(LoadingStateKey.Bank, false);
setLoading(LoadingStateKey.Market, false);
}
};

Expand Down

0 comments on commit 64ac368

Please sign in to comment.