Skip to content

Commit f039836

Browse files
committed
Fix types
1 parent 01666e6 commit f039836

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

peerprep/components/questionpage/CollabEditor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export default function CollabEditor({
213213
setOtherUserConnected(true);
214214
setLastPingReceived(Date.now());
215215
}
216+
break;
216217
default:
217218
const exhaustiveCheck: never = msgType;
218219
console.error("Unknown message type:", exhaustiveCheck);
@@ -246,7 +247,7 @@ export default function CollabEditor({
246247
if (socket) {
247248
console.log("PINGING WS FROM " + userId);
248249
const msg: Message = {
249-
type: "ping",
250+
type: MessageTypes.PING.valueOf(),
250251
data: "pinging",
251252
userId: userId,
252253
};

0 commit comments

Comments
 (0)