chore: uiStore.ts has identical duplicate reset() and resetUI() functions #49

Closed
opened 2026-05-18 16:02:34 +02:00 by Anexim · 2 comments
Owner

Severity: Minor

File: src/lib/game/stores/uiStore.ts (lines 56-73)

Problem: Both reset and resetUI do exactly the same thing — reset all UI state to initial values. This is dead code / unnecessary duplication.

Impact: Confusing for developers. Which one should be called?

Fix: Remove one of them and update all callers to use the remaining one.

**Severity:** Minor **File:** `src/lib/game/stores/uiStore.ts` (lines 56-73) **Problem:** Both `reset` and `resetUI` do exactly the same thing — reset all UI state to initial values. This is dead code / unnecessary duplication. **Impact:** Confusing for developers. Which one should be called? **Fix:** Remove one of them and update all callers to use the remaining one.
Anexim added the ai:todo label 2026-05-18 16:02:34 +02:00
n8n-gitea was assigned by Anexim 2026-05-18 16:02:34 +02:00
Author
Owner

[priority: 1] CLEANUP — uiStore.ts has identical duplicate reset() and resetUI() functions.

[priority: 1] CLEANUP — uiStore.ts has identical duplicate reset() and resetUI() functions.
Author
Owner

Fixed: Removed duplicate resetUI() function from uiStore.ts. Updated caller in gameActions.ts to use reset() instead.

Fixed: Removed duplicate resetUI() function from uiStore.ts. Updated caller in gameActions.ts to use reset() instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#49