Skip to content

Commit

Permalink
[♻️refactor]: 코드 스타일 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
dlsxjzld committed Apr 5, 2024
1 parent 2cb2802 commit 2b8f63d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/GamePage/hooks/useWebsocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ const useWebsocket = (roomId: number | null) => {
);
};
const onIngameDisconnected = () => {
if (ingameSubscription.current) {
ingameSubscription.current.unsubscribe();
}
ingameSubscription.current?.unsubscribe();
};

const handleConnectIngame = (roomId: number) => {
Expand Down

0 comments on commit 2b8f63d

Please sign in to comment.