diff --git a/apps/nowait-user/src/api/order.ts b/apps/nowait-user/src/api/order.ts index c3c71fa8..1a42663e 100644 --- a/apps/nowait-user/src/api/order.ts +++ b/apps/nowait-user/src/api/order.ts @@ -19,7 +19,7 @@ export const createOrder = async ( tableId: number, payload: OrderType ): Promise => { - const res = await api.post(`${API_URI}/orders/create/${storeId}/${tableId}`, payload); + const res = await axios.post(`/orders/create/${storeId}/${tableId}`, payload); return res.data; }; @@ -28,7 +28,7 @@ export const getOrderDetails = async ( storeId: number | undefined, tableId: number ): Promise => { - const res = await api.get(`/orders/items/${storeId}/${tableId}`); + const res = await axios.get(`/orders/items/${storeId}/${tableId}`); return res.data; }; diff --git a/apps/nowait-user/src/components/SmallActionButton.tsx b/apps/nowait-user/src/components/SmallActionButton.tsx index b5141fc8..b4b4ffea 100644 --- a/apps/nowait-user/src/components/SmallActionButton.tsx +++ b/apps/nowait-user/src/components/SmallActionButton.tsx @@ -18,7 +18,7 @@ export const SmallActionButton = ({