From 81870218c1d5ed0074b7a4bca0bee32dd704a2e8 Mon Sep 17 00:00:00 2001 From: neru Date: Fri, 19 Jun 2026 04:53:34 -0300 Subject: [PATCH] fix: sync unlocked characters --- store/wsProtocol.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/store/wsProtocol.ts b/store/wsProtocol.ts index 29030a0..e4546f0 100644 --- a/store/wsProtocol.ts +++ b/store/wsProtocol.ts @@ -20,6 +20,7 @@ export interface SpooferConfig { dlcListGRDK: string[]; dlcListEGS: string[]; dlcListSteam: string[]; + unlockedCharacters: string[]; } export interface Toggles { @@ -137,7 +138,8 @@ export async function mapStoreToSpooferConfig(state: { catalogItemIds: [...state.unlockedCustomizations], dlcListSteam, dlcListEGS, - dlcListGRDK + dlcListGRDK, + unlockedCharacters: [...state.unlockedCharacters] }; } @@ -173,7 +175,7 @@ export async function mapSpooferConfigToStore(profile: SpooferConfig) { ]; return { - unlockedCharacters: [] as string[], + unlockedCharacters: profile.unlockedCharacters || [], unlockedCustomizations: profile.catalogItemIds || [], unlockedDLCs, unlockedPerks,