Fixed a bug where it tried to verify an email when there wasn't any
This commit is contained in:
parent
13024086d9
commit
d27b5d6870
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@
|
|||
beforeMount() {
|
||||
// Try to verify the email
|
||||
let emailVerifyToken = localStorage.getItem('emailConfirmToken')
|
||||
if (emailVerifyToken !== '') {
|
||||
if (emailVerifyToken) {
|
||||
this.loading = true
|
||||
HTTP.post(`user/confirm`, {token: emailVerifyToken})
|
||||
.then(() => {
|
||||
|
|
Loading…
Reference in a new issue