Skip to content

Commit

Permalink
fix(payment): clear payment error after switching payment method
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Aug 4, 2021
1 parent 7017341 commit b15e2c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/containers/AccountModal/forms/Checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const Checkout = () => {
const toPaymentMethodId = parseInt(event.target.value);

setPaymentMethodId(toPaymentMethodId);
setPaymentError(undefined);

if (order && toPaymentMethodId) {
setUpdatingOrder(true);
Expand Down

0 comments on commit b15e2c7

Please sign in to comment.