Skip to content

Commit

Permalink
fix ws status
Browse files Browse the repository at this point in the history
  • Loading branch information
simbafs committed Aug 2, 2024
1 parent eafd379 commit 36a8ea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/hooks/useAttendance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export function useAttendance() {
}, [lastMessage])

return {
// isConnected: socket?.readyState === WebSocket.OPEN,
isConnected: !!socket,
isConnected: socket?.readyState === WebSocket.OPEN,
// isConnected: !!socket,
attendance,
updateAttendance,
}
Expand Down

0 comments on commit 36a8ea7

Please sign in to comment.