stronger check
This commit is contained in:
parent
0453f936eb
commit
6173b07727
1 changed files with 1 additions and 1 deletions
|
@ -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]}`);
|
||||||
|
|
Loading…
Reference in a new issue