Overnap
Builds for 1 pipeline passed in 8 minutes 1 second

handleGetWordLength가 반대로 작동하는 문제 수정

......@@ -48,9 +48,9 @@ export const GameBoard: React.FC<GameBoardProps> = ({ isInGame }) => {
const handleGetWordLength = useCallback((rawMessage: RawMessage) => {
if (rawMessage.type === MessageType.GAME_WORD) {
if (wordChosen !== '') {
if (wordChosen === '') {
const { length } = rawMessage.message as { length: number };
setWordChosen('_'.repeat(length));
setWordChosen('_' + ' _'.repeat(length-1));
}
}
}, [wordChosen]);
......