You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ff9eb7
Browse filesBrowse the repository at this point in the historyBrowse files
{timeExpired&&<pclassName="text-sm text-destructive"role="alert">{t('sparring.round.timeExpired','This speaking time has ended. Reset the turn to continue.')}</p>}
@@ -196,6 +190,7 @@ export default function SparringPage() {
196
190
setRetryNonce(0);
197
191
aiRequestRef.current=null;
198
192
judgeRequestRef.current=null;
193
+
setSubmissionError(null);
199
194
};
200
195
201
196
consthandleRestart=()=>{
@@ -205,6 +200,12 @@ export default function SparringPage() {
205
200
setRetryNonce(0);
206
201
aiRequestRef.current=null;
207
202
judgeRequestRef.current=null;
203
+
setSubmissionError(null);
204
+
};
205
+
206
+
consthandleSubmit=(content: string)=>{
207
+
constresult=submitUserSpeech(content);
208
+
setSubmissionError(result ? null : t('sparring.round.speechRejected','This speech could not be submitted. Check the timer and length, then try again.'));
208
209
};
209
210
210
211
consthandleExportDocx=()=>{
@@ -243,7 +244,8 @@ export default function SparringPage() {
0 commit comments