summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/UserModuleEdit.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/UserModuleEdit.vue')
-rw-r--r--webapp/src/components/UserModuleEdit.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/src/components/UserModuleEdit.vue b/webapp/src/components/UserModuleEdit.vue
index e4f3cb0..e134a7e 100644
--- a/webapp/src/components/UserModuleEdit.vue
+++ b/webapp/src/components/UserModuleEdit.vue
@@ -74,7 +74,7 @@ export default {
this.setDialog({ show: false })
this.$snackbar({ color: 'success', text: this.dialog.info.id ? this.$t('userUpdated') : this.$t('userCreated') })
}).catch(error => {
- if (error.response.data.status === 'USER_ALREADY_EXISTS') {
+ if (error.response.data.error === 'USER_ALREADY_EXISTS') {
this.$refs.editComponent.setUsernameTakenError()
}
})