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 = ({