File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ export default function useAssessment(assessmentId: string) {
9696 await submitCandidateAssessment ( assessmentId ) ;
9797 setOutroReason ( reason ) ;
9898 setPhase ( 'outro' ) ;
99- } catch ( _err ) {
100- toast . error ( 'Failed to submit assessment. Please try again.' ) ;
99+ } catch ( err ) {
100+ toast . error ( 'Failed to submit assessment. Please try again. Error: ' + ( err ) ) ;
101101 setIsSubmitting ( false ) ;
102102 }
103103 } ,
@@ -180,11 +180,11 @@ export default function useAssessment(assessmentId: string) {
180180 prev . map ( ( s , i ) =>
181181 i === currentSectionIndex
182182 ? {
183- ...s ,
184- testCaseResults : s . testCaseResults . map ( ( ) => ( {
185- status : 'loading' as const ,
186- } ) ) ,
187- }
183+ ...s ,
184+ testCaseResults : s . testCaseResults . map ( ( ) => ( {
185+ status : 'loading' as const ,
186+ } ) ) ,
187+ }
188188 : s
189189 )
190190 ) ;
You can’t perform that action at this time.
0 commit comments