From 6173b07727d51f6a14e85bf72fdc130472b0296b Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 25 Feb 2020 17:30:19 -0500 Subject: [PATCH] stronger check --- ui/redux/actions/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/redux/actions/app.js b/ui/redux/actions/app.js index 9bd508491..52b6d97c3 100644 --- a/ui/redux/actions/app.js +++ b/ui/redux/actions/app.js @@ -493,7 +493,7 @@ export function doGetAndPopulatePreferences() { Object.entries(settings).forEach(([key, val]) => { if (val !== null && daemonSettings[key] !== val) { if (key === SHARED_PREFERENCES.WALLET_SERVERS) { - const hasSavedServers = Array.isArray(val) && val.length; + const hasSavedServers = Array.isArray(val) && val.length > 0; if (hasSavedServers) { // Ignore this key if there are no actual saved servers in the list const servers = val.map(item => `${item[0]}:${item[1]}`);