fix: show deafult grading method

This commit is contained in:
Irtaza Akram
2026-01-20 13:30:20 +05:00
committed by Feanil Patel
parent f6da58a950
commit 05de984fa4

View File

@@ -36,7 +36,7 @@ const ScoringCard = ({
? intl.formatMessage(messages.unlimitedAttemptsSummary)
: intl.formatMessage(messages.attemptsSummary, { attempts: attempts || defaultValue });
const methodMessage = gradingMethod ? GradingMethod[gradingMethod] : null;
const methodMessage = GradingMethod[gradingMethod || GradingMethodKeys.LAST_SCORE];
if (methodMessage) {
summary += ` ${String.fromCharCode(183)} `;
@@ -65,7 +65,7 @@ const ScoringCard = ({
<Form.Group>
<Form.Control
as="select"
value={scoring.gradingMethod}
value={scoring.gradingMethod || GradingMethodKeys.LAST_SCORE}
onChange={handleGradingMethodChange}
floatingLabel={intl.formatMessage(messages.scoringGradingMethodInputLabel)}
>