Use payload when inserting created account

This commit is contained in:
Lukas Hirt
2020-09-09 13:01:22 +02:00
parent c9efbbd6b8
commit 15da3462ac
2 changed files with 2 additions and 2 deletions
@@ -79,6 +79,7 @@ export default {
}
this.createNewAccount({ username: this.username, email: this.email, password: this.password })
this.emitCancel()
},
checkUsername () {
+1 -2
View File
@@ -189,8 +189,7 @@ const actions = {
})
if (response.status === 201) {
commit('PUSH_NEW_ACCOUNT', account)
console.log(response)
commit('PUSH_NEW_ACCOUNT', response.data)
} else {
dispatch('showMessage', {
title: 'Failed to create account',