fix sync changes (#7407)

This commit is contained in:
jessopb 2022-01-07 13:03:29 -05:00 committed by GitHub
parent 78fb559fa2
commit 8a7b88f073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -233,7 +233,9 @@ export function doSetWalletSyncPreference(pref) {
export function doPushSettingsToPrefs() {
return (dispatch, getState) => {
const state = getState();
const { clientSettings } = state;
const {
settings: { clientSettings },
} = state;
const sharedPreferences = Object.assign({}, state.sharedPreferences);
const selectedClientSettings = getSubsetFromKeysArray(clientSettings, CLIENT_SYNC_KEYS);
const newSharedPreferences = { ...sharedPreferences, ...selectedClientSettings };