From c7c3c04ce414a4af5db11c01f9e3127baea74476 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 17 Dec 2025 12:21:57 +0330 Subject: [PATCH] delay for setIsSelectedShipment --- src/app/[name]/(Dialogs)/cart/components/CartSummary.tsx | 2 +- .../order/checkout/[id]/components/ShippingSection.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/[name]/(Dialogs)/cart/components/CartSummary.tsx b/src/app/[name]/(Dialogs)/cart/components/CartSummary.tsx index 4da7186..d776785 100644 --- a/src/app/[name]/(Dialogs)/cart/components/CartSummary.tsx +++ b/src/app/[name]/(Dialogs)/cart/components/CartSummary.tsx @@ -92,7 +92,7 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps } }} > - + diff --git a/src/app/[name]/(Dialogs)/order/checkout/[id]/components/ShippingSection.tsx b/src/app/[name]/(Dialogs)/order/checkout/[id]/components/ShippingSection.tsx index f4bca96..9436d8c 100644 --- a/src/app/[name]/(Dialogs)/order/checkout/[id]/components/ShippingSection.tsx +++ b/src/app/[name]/(Dialogs)/order/checkout/[id]/components/ShippingSection.tsx @@ -52,7 +52,9 @@ export const ShippingSection = ({ deliveryType, onDeliveryTypeChange }: Shipping onDeliveryTypeChange(selectedOption.id); setDeliveryMethod(selectedOption.id, { onSuccess: () => { - setIsSelectedShipment(true); + setTimeout(() => { + setIsSelectedShipment(true); + }, 500); }, }); }