Tweak formatting on user edit page

This commit is contained in:
Jonathan Reinink 2020-09-24 13:40:04 -04:00
parent 47aab49c64
commit e818f81539
1 changed files with 1 additions and 3 deletions

View File

@ -86,15 +86,13 @@ export default {
this.$inertia.post(this.route('users.update', this.user.id), data, {
onStart: () => this.sending = true,
onFinish: () => this.sending = false,
onSuccess: () => {
if (Object.keys(this.$page.errors).length === 0) {
this.form.photo = null
this.form.password = null
}
},
onFinish: () => {
this.sending = false
},
})
},
destroy() {