We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 240ad1f commit ff2efeeCopy full SHA for ff2efee
src/hooks/Mutations/shop/useMakeOrder.jsx
@@ -1,10 +1,10 @@
1
import { useMutation, useQueryClient } from "@tanstack/react-query";
2
import privateAxios from "../../../api/privateAxios";
3
-import useAuth from "../../useAuth";
+// import useAuth from "../../useAuth";
4
5
// POST: https://apis.spaceyatech.com/api/checkout/
6
const useMakeOrder = () => {
7
- const { auth, logout } = useAuth();
+ // const { auth, logout } = useAuth();
8
const queryClient = useQueryClient();
9
10
return useMutation({
@@ -25,7 +25,7 @@ const useMakeOrder = () => {
25
// eslint-disable-next-line no-console
26
console.error("Unable to add availability");
27
if (error.response.status === 401) {
28
- logout();
+ // logout();
29
}
30
},
31
});
0 commit comments