From ef216e5d369a17972af571e1295d10b09f9e81d9 Mon Sep 17 00:00:00 2001 From: Amine Date: Thu, 17 Oct 2024 23:24:47 +0100 Subject: [PATCH] fix build --- .../checkout/_parts/checkout-form/payment/button/index.tsx | 6 +++--- .../(checkout)/checkout/_parts/checkout-form/review.tsx | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/payment/button/index.tsx b/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/payment/button/index.tsx index b772a27..0eb6100 100644 --- a/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/payment/button/index.tsx +++ b/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/payment/button/index.tsx @@ -6,7 +6,7 @@ import StripePaymentButton from "./stripe"; type Props = { cart: StoreCart; - disabled: boolean; + disabled?: boolean; }; export default function PaymentButton({cart, disabled}: Props) { const paymentSession = cart.payment_collection?.payment_sessions?.[0]; @@ -19,10 +19,10 @@ export default function PaymentButton({cart, disabled}: Props) { disabled; if (isStripe(paymentSession?.provider_id)) { - return ; + return ; } if (isManual(paymentSession?.provider_id)) { - return ; + return ; } } diff --git a/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/review.tsx b/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/review.tsx index 045465c..c3666af 100644 --- a/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/review.tsx +++ b/storefront/app/(country-code)/(checkout)/checkout/_parts/checkout-form/review.tsx @@ -1,6 +1,6 @@ "use client"; -import type { StoreCart } from "@medusajs/types"; +import type {StoreCart} from "@medusajs/types"; import Body from "@/components/shared/typography/body"; import Heading from "@/components/shared/typography/heading"; @@ -14,9 +14,7 @@ export default function Review({ active: boolean; cart: StoreCart; }) { - - - if (!active) return null + if (!active) return null; return (