fix: sync unlocked characters

This commit is contained in:
2026-06-19 04:53:34 -03:00
parent 4617d6c9fa
commit 81870218c1
+4 -2
View File
@@ -20,6 +20,7 @@ export interface SpooferConfig {
dlcListGRDK: string[]; dlcListGRDK: string[];
dlcListEGS: string[]; dlcListEGS: string[];
dlcListSteam: string[]; dlcListSteam: string[];
unlockedCharacters: string[];
} }
export interface Toggles { export interface Toggles {
@@ -137,7 +138,8 @@ export async function mapStoreToSpooferConfig(state: {
catalogItemIds: [...state.unlockedCustomizations], catalogItemIds: [...state.unlockedCustomizations],
dlcListSteam, dlcListSteam,
dlcListEGS, dlcListEGS,
dlcListGRDK dlcListGRDK,
unlockedCharacters: [...state.unlockedCharacters]
}; };
} }
@@ -173,7 +175,7 @@ export async function mapSpooferConfigToStore(profile: SpooferConfig) {
]; ];
return { return {
unlockedCharacters: [] as string[], unlockedCharacters: profile.unlockedCharacters || [],
unlockedCustomizations: profile.catalogItemIds || [], unlockedCustomizations: profile.catalogItemIds || [],
unlockedDLCs, unlockedDLCs,
unlockedPerks, unlockedPerks,