room & office number fix sending

This commit is contained in:
2026-01-15 06:22:09 +03:00
parent 26a16fa8d7
commit adc98200cb
4 changed files with 18 additions and 8 deletions

View File

@@ -35,7 +35,15 @@ export default function CheckoutPage() {
} = useAppSelector(selectCart);
const { token } = useAppSelector((state) => state.auth);
useEffect(() => {
form.setFieldsValue({ coupon, collectionMethod, phone, customerName, tip });
form.setFieldsValue({
coupon,
collectionMethod,
phone,
customerName,
tip,
officeNumber: order?.officeNumber,
roomNumber: order?.roomNumber,
});
}, [form, phone, coupon, collectionMethod, customerName, tip]);
return (