Fix #111 - Remove inappropriate notification during registration

This commit is contained in:
Bubka 2022-08-05 10:45:23 +02:00
parent d1708b9c9b
commit 5800308e93

View File

@ -72,7 +72,7 @@
this.showWebauthnRegistration = true
})
.catch(error => {
if( error.response.status === 422 && error.response.data.errors.name ) {
if( error.response.status === 422 && error.response.data.errors.name.includes(this.$t('validation.custom.name.firstUser')) ) {
this.$notify({ type: 'is-danger', text: this.$t('errors.cannot_register_more_user'), duration:-1 })
}