Skip to content

Commit

Permalink
Merge pull request #90 from CAU-Capstone-FindIt/hot-fix
Browse files Browse the repository at this point in the history
FIX:토글수정
  • Loading branch information
kimtree24 authored Dec 10, 2024
2 parents 3619172 + 6484497 commit 3c0981d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/userpage/Registeitem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useFindListQuery } from "../../apis/FindQuery";
import { myFind, myLost } from "../../apis/MyRegister";

const Registeitem = () => {
const [itemType, setItemType] = useState("");
const [itemType, setItemType] = useState("lost");
const [findReports, setFindReports] = useState([])

useEffect(() => {
Expand All @@ -18,7 +18,7 @@ const Registeitem = () => {
if(itemType == "lost"){
const response = await myLost();
setFindReports(response)
}else if(itemType == "find"){
}else if(itemType == "found"){
//setItemType("find")
const response = await myFind();
setFindReports(response)
Expand Down

0 comments on commit 3c0981d

Please sign in to comment.