Skip to content

Commit

Permalink
fix: remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakobayashidev committed Oct 12, 2023
1 parent ef5418a commit 5e940f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/src/app/(app)/face/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const useMember = () => {
setMember(res);

if (!res) {
toast.error("人物が見つかりませんでした");
toast.error("人物がサーバーに見つかりませんでした");
}
})
.catch((e) => {
Expand All @@ -35,8 +35,11 @@ export default function Page() {
const { clearMember, fetchMember, member } = useMember();

const handleFaceDetect = async (name: string) => {
console.log(name);
await fetchMember("岸田文雄");
if (name !== "unknown") {
await fetchMember(name);
} else {
toast.error("人物を検出できませんでした");
}
};

return (
Expand Down

0 comments on commit 5e940f9

Please sign in to comment.