diff --git a/vite/src/pages/flow_free.jsx b/vite/src/pages/flow_free.jsx index c88389f..19c30ca 100644 --- a/vite/src/pages/flow_free.jsx +++ b/vite/src/pages/flow_free.jsx @@ -548,6 +548,7 @@ export function FreeFlow(){ let next=cue.nextcue; switch(cue.numpad_type){ case NUMPAD_TYPE.USERID: + console.log('set id', padInput); setUserId(()=>padInput); break; case NUMPAD_TYPE.CHOICE: diff --git a/vite/src/util/backend.js b/vite/src/util/backend.js index 2c8ce2a..6eb0b39 100644 --- a/vite/src/util/backend.js +++ b/vite/src/util/backend.js @@ -51,8 +51,8 @@ export async function writeToGoogleSheet(date, session, userId, password){ body: JSON.stringify({ "date":date, "session":session, - "userId":userId, - "password":password, + "userId":userId?.toString(), + "password":password?.toString(), "createdTime": new Date().toLocaleString() }) });