diff options
Diffstat (limited to 'ui/app/models')
-rw-r--r-- | ui/app/models/account.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/models/account.js b/ui/app/models/account.js index e93d757..0251da0 100644 --- a/ui/app/models/account.js +++ b/ui/app/models/account.js @@ -112,6 +112,9 @@ export default class Account { // returns a promise, fullfill is passed account object // static active() { + if (!bitmask.api_token()) { + return new Promise((resolve, reject) => {resolve(null)}) + } return bitmask.bonafide.user.active().then( response => { if (response.user == '<none>') { |