diff --git a/frontend/src/PlayerView.js b/frontend/src/PlayerView.js index e536c13..1198b3e 100644 --- a/frontend/src/PlayerView.js +++ b/frontend/src/PlayerView.js @@ -11,8 +11,8 @@ function WordElement({word, onChange}) { return ( <> - - + + {onChange(e.target.value, word.id)}} /> - + ); } @@ -91,7 +91,7 @@ export default function PlayerView() { 'Accept': 'application/json', 'Content-Type': 'application/json' }, - + //make sure to serialize your JSON body body: JSON.stringify({ word: "", @@ -130,7 +130,7 @@ export default function PlayerView() { 'Accept': 'application/json', 'Content-Type': 'application/json' }, - + //make sure to serialize your JSON body body: JSON.stringify({ id: id,