Skip to content

Commit ff2efee

Browse files
committed
fix: linting issues
1 parent 240ad1f commit ff2efee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hooks/Mutations/shop/useMakeOrder.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useMutation, useQueryClient } from "@tanstack/react-query";
22
import privateAxios from "../../../api/privateAxios";
3-
import useAuth from "../../useAuth";
3+
// import useAuth from "../../useAuth";
44

55
// POST: https://apis.spaceyatech.com/api/checkout/
66
const useMakeOrder = () => {
7-
const { auth, logout } = useAuth();
7+
// const { auth, logout } = useAuth();
88
const queryClient = useQueryClient();
99

1010
return useMutation({
@@ -25,7 +25,7 @@ const useMakeOrder = () => {
2525
// eslint-disable-next-line no-console
2626
console.error("Unable to add availability");
2727
if (error.response.status === 401) {
28-
logout();
28+
// logout();
2929
}
3030
},
3131
});

0 commit comments

Comments
 (0)