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>
|
</Link>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -52,7 +52,9 @@ export const ShippingSection = ({ deliveryType, onDeliveryTypeChange }: Shipping
|
|||||||
onDeliveryTypeChange(selectedOption.id);
|
onDeliveryTypeChange(selectedOption.id);
|
||||||
setDeliveryMethod(selectedOption.id, {
|
setDeliveryMethod(selectedOption.id, {
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
|
setTimeout(() => {
|
||||||
setIsSelectedShipment(true);
|
setIsSelectedShipment(true);
|
||||||
|
}, 500);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user