Overnap
Builds for 1 pipeline passed in 8 minutes 1 second

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

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