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 }); } }