Skip to content

Commit

Permalink
Fix missing decode
Browse files Browse the repository at this point in the history
  • Loading branch information
tcriess committed Feb 20, 2021
1 parent b10ef8d commit dad04cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const App = () => {

if (socket) {
socket.onmessage = async (event) => {
const msg = event.data;
const msg = JSON.parse(event.data);

if (!msg) {
console.log("Failed to parse msg");
Expand Down

0 comments on commit dad04cd

Please sign in to comment.