stronger check

This commit is contained in:
Sean Yesmunt 2020-02-25 17:30:19 -05:00
parent 0453f936eb
commit 6173b07727

View file

@ -493,7 +493,7 @@ export function doGetAndPopulatePreferences() {
Object.entries(settings).forEach(([key, val]) => { Object.entries(settings).forEach(([key, val]) => {
if (val !== null && daemonSettings[key] !== val) { if (val !== null && daemonSettings[key] !== val) {
if (key === SHARED_PREFERENCES.WALLET_SERVERS) { if (key === SHARED_PREFERENCES.WALLET_SERVERS) {
const hasSavedServers = Array.isArray(val) && val.length; const hasSavedServers = Array.isArray(val) && val.length > 0;
if (hasSavedServers) { if (hasSavedServers) {
// Ignore this key if there are no actual saved servers in the list // Ignore this key if there are no actual saved servers in the list
const servers = val.map(item => `${item[0]}:${item[1]}`); const servers = val.map(item => `${item[0]}:${item[1]}`);