delay for setIsSelectedShipment
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user