diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index 0e52da4..d2c3fea 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -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() {