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
@@ -52,7 +52,9 @@ export const ShippingSection = ({ deliveryType, onDeliveryTypeChange }: Shipping
onDeliveryTypeChange(selectedOption.id);
setDeliveryMethod(selectedOption.id, {
onSuccess: () => {
setIsSelectedShipment(true);
setTimeout(() => {
setIsSelectedShipment(true);
}, 500);
},
});
}