summaryrefslogtreecommitdiff
path: root/ui/app/models/account.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/models/account.js')
-rw-r--r--ui/app/models/account.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/models/account.js b/ui/app/models/account.js
index e93d7572..0251da03 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>') {