Skip to content

Commit

Permalink
Merge pull request #146 from thisdot/tdl-hotfix-error-account-form
Browse files Browse the repository at this point in the history
tdl:hotfix error account form
  • Loading branch information
Megio authored Jul 25, 2023
2 parents f921460 + 2d74bcf commit 19b3f8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/AccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ function AccountForm({ customer }: IAccountForm) {
}
}

revalidatePath('/account');

if (!formError) {
revalidatePath('/account');
redirect('/account');
}
};
Expand Down
3 changes: 2 additions & 1 deletion components/AddressForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ function AddressForm({ isNewAddress, address, defaultAddress }: IAddressForm) {
}
}

revalidatePath('/account');

if (!formError) {
revalidatePath('/account');
redirect('/account');
}
};
Expand Down

0 comments on commit 19b3f8c

Please sign in to comment.