Fix error container at registration page always being displayed

This commit is contained in:
kolaente 2020-02-28 22:08:16 +01:00
parent 8c82c2302f
commit 269b80e64e
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -37,7 +37,7 @@
<div class="notification is-info" v-if="loading"> <div class="notification is-info" v-if="loading">
Loading... Loading...
</div> </div>
<div class="notification is-danger" v-if="error"> <div class="notification is-danger" v-if="errorMsg !== ''">
{{ errorMsg }} {{ errorMsg }}
</div> </div>
</form> </form>
@ -76,7 +76,7 @@
if (this.credentials.password2 !== this.credentials.password) { if (this.credentials.password2 !== this.credentials.password) {
this.loading = false this.loading = false
this.errorMsg = 'Passwords don\'t match' this.errorMsg = 'Passwords don\'t match.'
return return
} }