delay for setIsSelectedShipment

This commit is contained in:
hamid zarghami
2025-12-17 12:21:57 +03:30
parent 7b33e96135
commit c7c3c04ce4
2 changed files with 4 additions and 2 deletions
@@ -92,7 +92,7 @@ const CartSummary = ({ description = '', onDescriptionChange }: CartSummaryProps
}
}}
>
<Button className='w-fit! px-6' disabled={isCartEmpty}>{t('ButtonCheckout')}</Button>
<Button className='w-fit! px-10' disabled={isCartEmpty}>{t('ButtonCheckout')}</Button>
</Link>
</div>
@@ -52,7 +52,9 @@ export const ShippingSection = ({ deliveryType, onDeliveryTypeChange }: Shipping
onDeliveryTypeChange(selectedOption.id);
setDeliveryMethod(selectedOption.id, {
onSuccess: () => {
setIsSelectedShipment(true);
setTimeout(() => {
setIsSelectedShipment(true);
}, 500);
},
});
}