Parcourir la source

Remove empty else branch and detail the comments

tusooa il y a 10 mois
Parent
commit
209c0a8332
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/components/registration/registration.js

+ 2 - 2
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()