From eb4f3d2a26ac7b4663bd91e6ad5ed1f3d8df1726 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 19 Mar 2020 13:05:50 +1100 Subject: [PATCH] Fixed bug with image upload --- src/routes/Game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Game.js b/src/routes/Game.js index 07a4c8f..21551a8 100644 --- a/src/routes/Game.js +++ b/src/routes/Game.js @@ -35,7 +35,7 @@ function Game() { imageDataRef.current = event.target.files[0]; setImageSource(URL.createObjectURL(imageDataRef.current)); for (let connection of Object.values(connections)) { - connection.data.send({ id: "image", data: imageDataRef.current }); + connection.send({ id: "image", data: imageDataRef.current }); } }