Remove empty else branch and detail the comments

merge-requests/1891/merge
tusooa 8 months ago
parent 82c0044963
commit 209c0a8332
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51

@ -112,9 +112,9 @@ const registration = {
const status = await this.signUp(this.user) const status = await this.signUp(this.user)
if (status === 'ok') { if (status === 'ok') {
this.$router.push({ name: 'friends' }) 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) { } catch (error) {
console.warn('Registration failed: ', error) console.warn('Registration failed: ', error)
this.setCaptcha() this.setCaptcha()

Loading…
Cancel
Save