diff options
| author | 2026-03-18 11:49:50 +0800 | |
|---|---|---|
| committer | 2026-03-18 11:49:50 +0800 | |
| commit | 08bcd364e5f32be457263f665797c2301379efb9 (patch) | |
| tree | cd327644b1311b2ab80c2102b2fb6e54131915fa /packages | |
| parent | 698d89b1342b7166945bb74bd4757bec8aeb8cfb (diff) | |
| download | DropOut-08bcd364e5f32be457263f665797c2301379efb9.tar.gz DropOut-08bcd364e5f32be457263f665797c2301379efb9.zip | |
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'packages')
| -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 }); } }, |