room & office number fix sending
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user