Skip to content

Commit 57f2146

Browse files
authored
fix: useContext import (#407)
1 parent 322f12d commit 57f2146

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/payment/Purchase.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from "axios";
22
import Cookies from "js-cookie";
3-
import { useEffect, useState } from "react";
3+
import { useEffect, useState, useContext } from "react";
44
import { useLocation, useNavigate, useParams } from "react-router-dom";
55

66
import OnOffBtn from "../../components/button/OnOffBtn";
@@ -39,6 +39,7 @@ const Purchase = () => {
3939
const [title, setTitle] = useState("");
4040
const [author, setAuthor] = useState("");
4141

42+
console.log(user);
4243
const [buyScript, setBuyScript] = useState(false);
4344
const [buyPerform, setBuyPerform] = useState(false);
4445

0 commit comments

Comments
 (0)