From 5800308e93f80c9c942b04a46f081f3cf6a705e3 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Fri, 5 Aug 2022 10:45:23 +0200 Subject: [PATCH] Fix #111 - Remove inappropriate notification during registration --- resources/js/views/auth/Register.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/views/auth/Register.vue b/resources/js/views/auth/Register.vue index 5ba0e64d..688efdc6 100644 --- a/resources/js/views/auth/Register.vue +++ b/resources/js/views/auth/Register.vue @@ -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 }) }