From 1a7b1e8eea57531c0c35f981145b522b7a2e7750 Mon Sep 17 00:00:00 2001 From: Christiaan Scheermeijer Date: Tue, 3 Aug 2021 10:53:00 +0200 Subject: [PATCH] fix(payment): fix coupon code error --- src/components/CheckoutForm/CheckoutForm.tsx | 6 +++--- src/containers/AccountModal/forms/Checkout.tsx | 12 ++++++++++-- src/i18n/locales/en_US/account.json | 2 ++ src/i18n/locales/nl_NL/account.json | 2 ++ src/stores/CheckoutStore.ts | 9 ++++++--- 5 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/components/CheckoutForm/CheckoutForm.tsx b/src/components/CheckoutForm/CheckoutForm.tsx index 46508cb40..ae5f4290f 100644 --- a/src/components/CheckoutForm/CheckoutForm.tsx +++ b/src/components/CheckoutForm/CheckoutForm.tsx @@ -24,7 +24,7 @@ type Props = { onRedeemCouponButtonClick: () => void; onCloseCouponFormClick: () => void; couponFormOpen: boolean; - couponFormError?: boolean; + couponFormError?: string; couponFormApplied?: boolean; couponFormSubmitting?: boolean; couponInputValue: string; @@ -99,8 +99,8 @@ const CheckoutForm: React.FC = ({ />