mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(client): handle exam awaiting challenges (#67455)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -229,7 +229,12 @@ export type Attempt = {
|
||||
} & (
|
||||
| {
|
||||
result: null;
|
||||
status: 'InProgress' | 'Expired' | 'PendingModeration' | 'Denied';
|
||||
status:
|
||||
| 'InProgress'
|
||||
| 'Expired'
|
||||
| 'PendingModeration'
|
||||
| 'Denied'
|
||||
| 'AwaitingChallenges';
|
||||
}
|
||||
| {
|
||||
status: 'Approved';
|
||||
|
||||
Reference in New Issue
Block a user