aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/ui/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ui/src/stores')
-rw-r--r--packages/ui/src/stores/auth-store.ts6
-rw-r--r--packages/ui/src/stores/game-store.ts4
2 files changed, 6 insertions, 4 deletions
diff --git a/packages/ui/src/stores/auth-store.ts b/packages/ui/src/stores/auth-store.ts
index bf7e3c5..54f30d3 100644
--- a/packages/ui/src/stores/auth-store.ts
+++ b/packages/ui/src/stores/auth-store.ts
@@ -123,7 +123,7 @@ export const useAuthStore = create<AuthState>((set, get) => ({
});
} catch (error) {
// Keep UI-friendly behavior consistent with prior code
- alert("Login failed: " + String(error));
+ alert(`Login failed: ${String(error)}`);
}
},
@@ -234,7 +234,7 @@ export const useAuthStore = create<AuthState>((set, get) => ({
if (errStr.includes("authorization_pending")) {
// Still waiting — keep polling
} else {
- set({ msLoginStatus: "Error: " + errStr });
+ set({ msLoginStatus: `Error: ${errStr}` });
if (
errStr.includes("expired_token") ||
@@ -247,7 +247,7 @@ export const useAuthStore = create<AuthState>((set, get) => ({
authProgressUnlisten();
set({ authProgressUnlisten: null });
}
- alert("Login failed: " + errStr);
+ alert(`Login failed: ${errStr}`);
set({ loginMode: "select" });
}
}
diff --git a/packages/ui/src/stores/game-store.ts b/packages/ui/src/stores/game-store.ts
index 1eaf7e7..7b6e746 100644
--- a/packages/ui/src/stores/game-store.ts
+++ b/packages/ui/src/stores/game-store.ts
@@ -70,7 +70,9 @@ export const useGameStore = create<GameState>((set, get) => ({
});
if (wasStopped) {
- toast.success(`Stopped Minecraft ${versionId} for instance ${instanceId}`);
+ toast.success(
+ `Stopped Minecraft ${versionId} for instance ${instanceId}`,
+ );
} else {
toast.info(`Minecraft ${versionId} exited for instance ${instanceId}`);
}