feat(client): handle exam awaiting challenges (#67455)

This commit is contained in:
Shaun Hamilton
2026-05-19 15:49:19 +02:00
committed by GitHub
parent 271a69bef5
commit b1141962e1
2 changed files with 10 additions and 3 deletions
@@ -58,8 +58,9 @@ export function Attempts({ examChallengeId }: AttemptsProps) {
case 'InProgress':
return t('exam.in-progress');
case 'PendingModeration':
return t('exam.pending');
case 'AwaitingChallenges':
case 'Expired':
default:
return t('exam.pending');
}
}
@@ -75,8 +76,9 @@ export function Attempts({ examChallengeId }: AttemptsProps) {
case 'InProgress':
return t('exam.in-progress');
case 'PendingModeration':
return t('exam.pending');
case 'AwaitingChallenges':
case 'Expired':
default:
return t('exam.pending');
}
}
+6 -1
View File
@@ -229,7 +229,12 @@ export type Attempt = {
} & (
| {
result: null;
status: 'InProgress' | 'Expired' | 'PendingModeration' | 'Denied';
status:
| 'InProgress'
| 'Expired'
| 'PendingModeration'
| 'Denied'
| 'AwaitingChallenges';
}
| {
status: 'Approved';