From b1141962e19e7609f3b7f1577fab535917686499 Mon Sep 17 00:00:00 2001 From: Shaun Hamilton Date: Tue, 19 May 2026 15:49:19 +0200 Subject: [PATCH] feat(client): handle exam awaiting challenges (#67455) --- client/src/templates/Challenges/exam-download/attempts.tsx | 6 ++++-- client/src/utils/ajax.ts | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/client/src/templates/Challenges/exam-download/attempts.tsx b/client/src/templates/Challenges/exam-download/attempts.tsx index 796f516bbdc..2588214b693 100644 --- a/client/src/templates/Challenges/exam-download/attempts.tsx +++ b/client/src/templates/Challenges/exam-download/attempts.tsx @@ -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'); } } diff --git a/client/src/utils/ajax.ts b/client/src/utils/ajax.ts index a02ab0b39f4..b47f40cbe16 100644 --- a/client/src/utils/ajax.ts +++ b/client/src/utils/ajax.ts @@ -229,7 +229,12 @@ export type Attempt = { } & ( | { result: null; - status: 'InProgress' | 'Expired' | 'PendingModeration' | 'Denied'; + status: + | 'InProgress' + | 'Expired' + | 'PendingModeration' + | 'Denied' + | 'AwaitingChallenges'; } | { status: 'Approved';