Skip to content

Commit

Permalink
fix for checkout error
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Oct 4, 2023
1 parent 32c534b commit 536cdba
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ const Taxes = ({ setError }: TaxesProps) => {
},
{
onSuccess: () => {
queryClient.invalidateQueries("preview");
queryClient.invalidateQueries("customerInfo");
if(initialValues.defaultPaymentMethod){
queryClient.invalidateQueries("preview");
queryClient.invalidateQueries("customerInfo");
}
},
onError: (error) => {
setFieldValue("Description", false);
Expand Down

0 comments on commit 536cdba

Please sign in to comment.