Skip to content

Commit

Permalink
[feat/#46] 불필요한 로그 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhoony committed Sep 25, 2024
1 parent 9ccf8e5 commit b74054d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/PoseDetector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useGuidePopup } from "@/hooks/useGuidePopup"
import { useSendPose } from "@/hooks/usePoseMutation"
import usePushNotification from "@/hooks/usePushNotification"
import { useCreateSnaphot } from "@/hooks/useSnapshotMutation"
import { useNotificationStore } from "@/store/NotificationStore"
import { useSnapShotStore } from "@/store/SnapshotStore"
import type { pose } from "@/utils/detector"
import { detectHandOnChin, detectSlope, detectTailboneSit, detectTextNeck } from "@/utils/detector"
Expand Down Expand Up @@ -125,9 +124,7 @@ const PoseDetector: React.FC = () => {
): void => {
if (condition && isSnapShotSaved) {
if (!timerRef.current) {
console.log(poseType, "start")
timerRef.current = setInterval(() => {
console.log("start")
if (resultRef.current) {
const { keypoints, score } = resultRef.current[0]
const req = { snapshot: { keypoints, score }, type: poseType }
Expand Down Expand Up @@ -336,6 +333,9 @@ const PoseDetector: React.FC = () => {
openPopup()
}

useEffect(() => {
console.log(notification)
}, [notification])
return (
<>
{isScriptError ? (
Expand Down

0 comments on commit b74054d

Please sign in to comment.