From dad04cd9efb9ff3405e5545e98b3ff075c813242 Mon Sep 17 00:00:00 2001
From: Thorsten Riess
Date: Sat, 20 Feb 2021 17:23:00 +0100
Subject: [PATCH] Fix missing decode
---
src/App.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/App.js b/src/App.js
index 42e2012..92fa4e7 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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");