This commit is contained in:
zeppi 2021-06-01 09:09:21 -04:00 committed by jessopb
parent f7775fd837
commit 7e049487c3
2 changed files with 25 additions and 25 deletions

20
dist/bundle.es.js vendored
View file

@ -1829,12 +1829,12 @@ function extractUserState(rawObj) {
settings, settings,
app_welcome_version, app_welcome_version,
sharing_3P, sharing_3P,
unpublishedCollectionTest, unpublishedCollections,
builtinCollectionTest, builtinCollections,
savedCollectionTest savedCollections
} = rawObj.value; } = rawObj.value;
return _extends$1({}, subscriptions ? { subscriptions } : {}, following ? { following } : {}, tags ? { tags } : {}, blocked ? { blocked } : {}, coin_swap_codes ? { coin_swap_codes } : {}, settings ? { settings } : {}, app_welcome_version ? { app_welcome_version } : {}, sharing_3P ? { sharing_3P } : {}, unpublishedCollectionTest ? { unpublishedCollectionTest } : {}, builtinCollectionTest ? { builtinCollectionTest } : {}, savedCollectionTest ? { savedCollectionTest } : {}); return _extends$1({}, subscriptions ? { subscriptions } : {}, following ? { following } : {}, tags ? { tags } : {}, blocked ? { blocked } : {}, coin_swap_codes ? { coin_swap_codes } : {}, settings ? { settings } : {}, app_welcome_version ? { app_welcome_version } : {}, sharing_3P ? { sharing_3P } : {}, unpublishedCollections ? { unpublishedCollections } : {}, builtinCollections ? { builtinCollections } : {}, savedCollections ? { savedCollections } : {});
} }
return {}; return {};
@ -1851,9 +1851,9 @@ function doPopulateSharedUserState(sharedSettings) {
settings, settings,
app_welcome_version, app_welcome_version,
sharing_3P, sharing_3P,
unpublishedCollectionTest, unpublishedCollections,
builtinCollectionTest, builtinCollections,
savedCollectionTest savedCollections
} = extractUserState(sharedSettings); } = extractUserState(sharedSettings);
dispatch({ dispatch({
type: USER_STATE_POPULATE, type: USER_STATE_POPULATE,
@ -1866,9 +1866,9 @@ function doPopulateSharedUserState(sharedSettings) {
settings, settings,
welcomeVersion: app_welcome_version, welcomeVersion: app_welcome_version,
allowAnalytics: sharing_3P, allowAnalytics: sharing_3P,
unpublishedCollectionTest, unpublishedCollections,
builtinCollectionTest, builtinCollections,
savedCollectionTest savedCollections
} }
}); });
}; };

View file

@ -13,9 +13,9 @@ type SharedData = {
settings?: any, settings?: any,
app_welcome_version?: number, app_welcome_version?: number,
sharing_3P?: boolean, sharing_3P?: boolean,
unpublishedCollectionTest: CollectionGroup, unpublishedCollections: CollectionGroup,
builtinCollectionTest: CollectionGroup, builtinCollections: CollectionGroup,
savedCollectionTest: Array<string>, savedCollections: Array<string>,
}, },
}; };
@ -30,9 +30,9 @@ function extractUserState(rawObj: SharedData) {
settings, settings,
app_welcome_version, app_welcome_version,
sharing_3P, sharing_3P,
unpublishedCollectionTest, unpublishedCollections,
builtinCollectionTest, builtinCollections,
savedCollectionTest, savedCollections,
} = rawObj.value; } = rawObj.value;
return { return {
@ -44,9 +44,9 @@ function extractUserState(rawObj: SharedData) {
...(settings ? { settings } : {}), ...(settings ? { settings } : {}),
...(app_welcome_version ? { app_welcome_version } : {}), ...(app_welcome_version ? { app_welcome_version } : {}),
...(sharing_3P ? { sharing_3P } : {}), ...(sharing_3P ? { sharing_3P } : {}),
...(unpublishedCollectionTest ? { unpublishedCollectionTest } : {}), ...(unpublishedCollections ? { unpublishedCollections } : {}),
...(builtinCollectionTest ? { builtinCollectionTest } : {}), ...(builtinCollections ? { builtinCollections } : {}),
...(savedCollectionTest ? { savedCollectionTest } : {}), ...(savedCollections ? { savedCollections } : {}),
}; };
} }
@ -64,9 +64,9 @@ export function doPopulateSharedUserState(sharedSettings: any) {
settings, settings,
app_welcome_version, app_welcome_version,
sharing_3P, sharing_3P,
unpublishedCollectionTest, unpublishedCollections,
builtinCollectionTest, builtinCollections,
savedCollectionTest, savedCollections,
} = extractUserState(sharedSettings); } = extractUserState(sharedSettings);
dispatch({ dispatch({
type: ACTIONS.USER_STATE_POPULATE, type: ACTIONS.USER_STATE_POPULATE,
@ -79,9 +79,9 @@ export function doPopulateSharedUserState(sharedSettings: any) {
settings, settings,
welcomeVersion: app_welcome_version, welcomeVersion: app_welcome_version,
allowAnalytics: sharing_3P, allowAnalytics: sharing_3P,
unpublishedCollectionTest, unpublishedCollections,
builtinCollectionTest, builtinCollections,
savedCollectionTest, savedCollections,
}, },
}); });
}; };