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