Skip to content

Commit dad04cd

Browse files
committed
Fix missing decode
1 parent b10ef8d commit dad04cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const App = () => {
6464

6565
if (socket) {
6666
socket.onmessage = async (event) => {
67-
const msg = event.data;
67+
const msg = JSON.parse(event.data);
6868

6969
if (!msg) {
7070
console.log("Failed to parse msg");

0 commit comments

Comments
 (0)