Skip to content

Commit

Permalink
chore: reset email only on success
Browse files Browse the repository at this point in the history
  • Loading branch information
KabinKhandThakuri committed Jan 8, 2025
1 parent 8fad721 commit b5c2246
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const onSubmit = async (data: UpdateEmailFormData) => {
}
emit("email:updateProcessed");
dzangolabVueUpdateEmail.value?.resetForm();
break;
}
case "EMAIL_ALREADY_EXISTS_ERROR": {
Expand Down Expand Up @@ -123,7 +124,6 @@ const onSubmit = async (data: UpdateEmailFormData) => {
}
}
dzangolabVueUpdateEmail.value?.resetForm();
loading.value = false;
} catch (error) {
emitter.emit("notify", {
Expand Down

0 comments on commit b5c2246

Please sign in to comment.