Skip to content
Snippets Groups Projects
Verified Commit 209c0a83 authored by tusooa's avatar tusooa :zap:
Browse files

Remove empty else branch and detail the comments

parent 82c00449
No related branches found
No related tags found
No related merge requests found
......@@ -112,9 +112,9 @@ const registration = {
const status = await this.signUp(this.user)
if (status === 'ok') {
this.$router.push({ name: 'friends' })
} else {
// display sign up notice, do not switch anywhere
}
// If status is not 'ok' (i.e. it needs further actions to be done
// before you can login), display sign up notice, do not switch anywhere
} catch (error) {
console.warn('Registration failed: ', error)
this.setCaptcha()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment