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