diff --git a/app/store/player.ts b/app/store/player.ts index eb92dad..d4fe947 100644 --- a/app/store/player.ts +++ b/app/store/player.ts @@ -3,8 +3,8 @@ import { create } from "zustand"; import { persist } from "zustand/middleware"; interface userPlayerPreferencesState { - voiceover: Map; - player: Map; + voiceover: Record; + player: Record; getPreferredVoiceover: (id: number) => (string | undefined); setPreferredVoiceover: (id: number, voiceover: string) => void; getPreferredPlayer: (id: number) => (string | undefined); @@ -14,8 +14,8 @@ interface userPlayerPreferencesState { export const useUserPlayerPreferencesStore = create()( persist( (set, get) => ({ - voiceover: new Map(), - player: new Map(), + voiceover: {}, + player: {}, getPreferredVoiceover: (id: number) => get().voiceover[id], setPreferredVoiceover: (id: number, voiceover: string) => { let current = get().voiceover