Wrapped additional error data under data

This commit is contained in:
Jori Lallo
2018-03-07 00:00:58 -08:00
parent f5c1ddf8b9
commit 983b8fe9a0
5 changed files with 8 additions and 6 deletions

View File

@ -45,9 +45,9 @@ class AuthStore {
this.team = res.data.team;
});
} catch (err) {
if (err.data.error === 'user_suspended') {
if (err.error.error === 'user_suspended') {
this.isSuspended = true;
this.suspendedContactEmail = err.data.adminEmail;
this.suspendedContactEmail = err.error.data.adminEmail;
}
}
};