aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2024-01-13 17:44:13 -0500
committertusooa <tusooa@kazv.moe>2024-01-13 17:44:13 -0500
commit209c0a83325b9475b5ff9a4fd1ebede17d06ed63 (patch)
tree14b64810fe0023e99db159f57592e69a31d8eb08 /src
parent82c00449638a7aa06b63454f6dc5a44924a6d36e (diff)
Remove empty else branch and detail the comments
Diffstat (limited to 'src')
-rw-r--r--src/components/registration/registration.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js
index ca1fed94..78d31980 100644
--- a/src/components/registration/registration.js
+++ b/src/components/registration/registration.js
@@ -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()