From a5405a4bf183057b73442bdc37c2f5a97768f33b Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Fri, 22 Nov 2024 18:13:46 +0100 Subject: [PATCH] chore: more changes --- src/components/SubmitAction.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/SubmitAction.tsx b/src/components/SubmitAction.tsx index a2f0bda..88dbacc 100644 --- a/src/components/SubmitAction.tsx +++ b/src/components/SubmitAction.tsx @@ -101,8 +101,10 @@ export const SubmitActionAnswerAtTime = ({ sendAction: (action: Action) => void onTeamQuestionIndex?: Receiver<{ team: string; question: string }> }) => { - const [answer, setAnswer] = useState({ - timestamp: '', + type ActionTimeAnswer = Omit & { timestampRaw: string } + + const [answer, setAnswer] = useState({ + timestampRaw: '', question: '', team: '', outcome: 'correct', @@ -122,11 +124,11 @@ export const SubmitActionAnswerAtTime = ({ type="text" class="fill" placeholder={'Tempo in formato HH:mm:ss...'} - value={answer.timestamp} - onInput={e => setAnswer({ ...answer, timestamp: e.currentTarget.value })} + value={answer.timestampRaw} + onInput={e => setAnswer({ ...answer, timestampRaw: e.currentTarget.value })} /> - @@ -176,7 +178,7 @@ export const SubmitActionAnswerAtTime = ({