From 3c20231a97de10dadf2da1d90946b5ae93b4532d Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 20 Dec 2025 10:39:25 +0330 Subject: [PATCH] Checkout --- src/app/[name]/(Dialogs)/order/checkout/[id]/page.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app/[name]/(Dialogs)/order/checkout/[id]/page.tsx b/src/app/[name]/(Dialogs)/order/checkout/[id]/page.tsx index 2921afc..d498513 100644 --- a/src/app/[name]/(Dialogs)/order/checkout/[id]/page.tsx +++ b/src/app/[name]/(Dialogs)/order/checkout/[id]/page.tsx @@ -90,11 +90,6 @@ function OrderDetailInex() { return shipmentMethod.data.find((item) => item.id === deliveryType); }, [shipmentMethod?.data, deliveryType]); - const shouldShowAddress = useMemo(() => { - if (!selectedDeliveryMethod) return true; - return selectedDeliveryMethod.method !== 'dineIn' && selectedDeliveryMethod.method !== 'deliveryCar'; - }, [selectedDeliveryMethod]); - return (
@@ -108,7 +103,7 @@ function OrderDetailInex() { )} - {shouldShowAddress && ( + {selectedDeliveryMethod?.method === 'deliveryCourier' && ( )}