Skip to content

Commit 3e71e12

Browse files
committed
use err var for linting
1 parent f756318 commit 3e71e12

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/lib/hooks/useAssessment.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)