From e94a0156696dcb831a01eb5396349cee167713e5 Mon Sep 17 00:00:00 2001 From: Ilya Zarembsky Date: Wed, 4 Nov 2020 11:41:21 -0500 Subject: [PATCH] Handle the case where Account#getUserSettings fails because settings have never been synced to account server --- src/classes/Account.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/classes/Account.js b/src/classes/Account.js index d30c6d32d..3036f8921 100644 --- a/src/classes/Account.js +++ b/src/classes/Account.js @@ -164,6 +164,10 @@ class Account { this._setAccountUserSettings(settings_json); return settings_json; }) + // Fetching the settings from the account server failed, + // or they have simply never been synced to the account server yet + // In that case, just use the local settings + .catch(() => this.buildUserSettings()) ) /**