diff options
Diffstat (limited to 'packages/ui/src')
| -rw-r--r-- | packages/ui/src/stores/game-store.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/ui/src/stores/game-store.ts b/packages/ui/src/stores/game-store.ts index 7e407de..0d896a1 100644 --- a/packages/ui/src/stores/game-store.ts +++ b/packages/ui/src/stores/game-store.ts @@ -171,9 +171,10 @@ export const useGameStore = create<GameState>((set, get) => ({ return await stopGameCommand(); } catch (e) { console.error("Failed to stop game:", e); - set({ stoppingInstanceId: null }); toast.error(`Failed to stop game: ${e}`); return null; + } finally { + set({ stoppingInstanceId: null }); } }, |