fix: sync unlocked characters
This commit is contained in:
+4
-2
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user