Skip to content

Commit

Permalink
clean revalidatepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Megio committed Jul 25, 2023
1 parent 96d225c commit 2d74bcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion components/AccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ function AccountForm({ customer }: IAccountForm) {
revalidatePath('/account');

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

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

0 comments on commit 2d74bcf

Please sign in to comment.