diff --git a/src/IsaacApiTypes.tsx b/src/IsaacApiTypes.tsx index da235d0d86..fe64c57f69 100644 --- a/src/IsaacApiTypes.tsx +++ b/src/IsaacApiTypes.tsx @@ -360,6 +360,7 @@ export interface QuestionValidationResponseDTO { questionId?: string; answer?: ChoiceDTO; correct?: boolean; + marks?: number; explanation?: ContentDTO; dateAttempted?: Date; } @@ -374,7 +375,6 @@ export interface InlineRegionValidationResponseDTO extends QuestionValidationRes } export interface LLMFreeTextQuestionValidationResponseDTO extends QuestionValidationResponseDTO { - marksAwarded?: number; markBreakdown?: LLMFreeTextMarkSchemeEntryDTO[]; } diff --git a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx index 4707dcb48f..da578dc7f9 100644 --- a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx +++ b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx @@ -39,7 +39,7 @@ export default function LLMFreeTextQuestionFeedbackView({validationResponse, max
- {`Prediction: ${validationResponse.marksAwarded} out of ${maxMarks} marks`} + {`Prediction: ${validationResponse.marks} out of ${maxMarks} marks`}
diff --git a/src/mocks/data.ts b/src/mocks/data.ts index ff75256957..b685070d4f 100644 --- a/src/mocks/data.ts +++ b/src/mocks/data.ts @@ -4462,7 +4462,7 @@ export const mockLLMMarkedValidationResponse = { }, "correct": true, "dateAttempted": 1760018609128, - "marksAwarded": 1, + "marks": 1, "markBreakdown": [ { "jsonField": "unreceivedMark0",