room number value sending

This commit is contained in:
2026-01-15 14:28:00 +03:00
parent 788b05d6f4
commit 4dfa08d26c
5 changed files with 21 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ export default function useOrder() {
giftDetails,
order,
restaurant,
} = useAppSelector(selectCart);
} = useAppSelector((state) => state.order);
const highestLoyaltyItem = useAppSelector(selectHighestPricedLoyaltyItem);
const { useLoyaltyPoints } = useAppSelector(selectCart);
@@ -54,8 +54,6 @@ export default function useOrder() {
const [createOrder] = useCreateOrderMutation();
console.log(order);
const getDeliveryMethod = useCallback(() => {
if (orderType === OrderType.Delivery) return 1;
if (orderType === OrderType.Pickup) return 2;
@@ -77,6 +75,8 @@ export default function useOrder() {
duration: 0,
});
console.log(order?.roomNumber);
createOrder({
phone: mobilenumber || phone || giftDetails?.senderPhone,
comment: specialRequest,
@@ -204,6 +204,14 @@ export default function useOrder() {
location?.lat,
location?.lng,
location?.address,
order,
pickupTime,
pickupDate,
plateCar,
pickupType,
discountAmount,
subtotal,
restaurant,
t,
navigate,
subdomain,