diff --git a/packages/frontend/src/components/gamePage/leftSection/MainDisplay.tsx b/packages/frontend/src/components/gamePage/leftSection/MainDisplay.tsx index bfc4d8d..2568986 100644 --- a/packages/frontend/src/components/gamePage/leftSection/MainDisplay.tsx +++ b/packages/frontend/src/components/gamePage/leftSection/MainDisplay.tsx @@ -30,7 +30,7 @@ export default function MainDisplay() { const { gameStartData, currentSpeaker, endSpeaking, votePinoco } = useGameSocket(setGamePhase); const { endingResult } = useEnding(setGamePhase); const { submitGuess } = useGuessing(isPinoco, setGamePhase); - const { voteResult, deadPerson } = useVoteResult( + const { voteResult, deadPerson, isDeadPersonPinoco } = useVoteResult( setIsVoteSubmitted, setGamePhase, setSelectedVote, @@ -118,7 +118,11 @@ export default function MainDisplay() { )} {gamePhase === GAME_PHASE.VOTING_RESULT && ( - + )} {gamePhase === GAME_PHASE.GUESSING && (
diff --git a/packages/frontend/src/hooks/useVoteResult.ts b/packages/frontend/src/hooks/useVoteResult.ts index 905bbca..4c7637a 100644 --- a/packages/frontend/src/hooks/useVoteResult.ts +++ b/packages/frontend/src/hooks/useVoteResult.ts @@ -18,7 +18,7 @@ export default function useVoteResult( const { removeUser } = useRoomStore(); const [voteResult, setVoteResult] = useState>({}); const [deadPerson, setDeadPerson] = useState(null); - const [isDeadPersonPinoco, setIsDeadPersonPinoco] = useState(null); // 추가 + const [isDeadPersonPinoco, setIsDeadPersonPinoco] = useState(null); useEffect(() => { if (!socket) return; @@ -33,7 +33,7 @@ export default function useVoteResult( setVoteResult(data.voteResult); setDeadPerson(data.deadPerson); - setIsDeadPersonPinoco(data.isDeadPersonPinoco); // 추가 + setIsDeadPersonPinoco(data.isDeadPersonPinoco); if (setSelectedVote) { setSelectedVote(null); @@ -48,5 +48,5 @@ export default function useVoteResult( }; }, [socket, onIsVotedChange, onPhaseChange, removeUser, setSelectedVote]); - return { voteResult, deadPerson, isDeadPersonPinoco }; // 수정 + return { voteResult, deadPerson, isDeadPersonPinoco }; }