From b2a25fe989314fcbea4ddb7f50cb17b3414418c2 Mon Sep 17 00:00:00 2001 From: Natsuu Date: Wed, 14 Jan 2026 04:59:37 +0000 Subject: fix: ensure selectedVersion is reset when no installed versions are found --- ui/src/stores/game.svelte.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/stores/game.svelte.ts b/ui/src/stores/game.svelte.ts index 3128cc6..f66cc71 100644 --- a/ui/src/stores/game.svelte.ts +++ b/ui/src/stores/game.svelte.ts @@ -35,6 +35,8 @@ export class GameState { // Fallback to just the first ID if not in manifest this.selectedVersion = this.installedVersionIds[0]; } + } else { + this.selectedVersion = ""; } } catch (e) { console.error("Failed to fetch versions:", e); -- cgit v1.2.3-70-g09d2