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 00:15:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1ead0850e0c49cdd2df15f8bf98218e5e9411fcf
1ead0850
1 parent
917d4a7e
방에서 나간 유저가 제대로 삭제되지 않던 문제 수정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
web/src/pages/Room.tsx
web/src/pages/Room.tsx
View file @
1ead085
...
...
@@ -34,7 +34,7 @@ export const Room: React.FC = () => {
const data = rawMessage.message as UpdateRoomUser;
if (data.state == 'removed') {
const newUsers = roomData.users;
const index = newUsers.
indexOf(data.user
);
const index = newUsers.
findIndex(x => x.username === data.user.username
);
if (index < 0) {
console.log('존재하지 않는 유저를 제거 시도');
} else {
...
...
Please
register
or
login
to post a comment