Merge pull request #3727 from lbryio/nullWalletServersBug

do not apply daemonSettings that are null
This commit is contained in:
jessopb 2020-02-21 17:34:35 -05:00 committed by GitHub
commit 2623f23d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -485,7 +485,7 @@ export function doGetAndPopulatePreferences() {
// @if TARGET='app'
const { settings, sharing_3P: sharing3P } = savedPreferences.value;
Object.entries(settings).forEach(([key, val]) => {
if (daemonSettings[key] !== val) {
if (val !== null && daemonSettings[key] !== val) {
dispatch(doSetDaemonSetting(key, val, true));
}
});