Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-10 04:27:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f158b2d59c117e7b2e42fc44b40c65b7f3c5d104
f158b2d5
1 parent
efedecbf
Builds for 1 pipeline
passed
in 8 minutes 1 second
handleGetWordLength가 반대로 작동하는 문제 수정
Changes
1
Builds
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
web/src/components/room/GameBoard.tsx
web/src/components/room/GameBoard.tsx
View file @
f158b2d
...
...
@@ -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]);
...
...
Please
register
or
login
to post a comment