Skip to content

Commit c4c5e11

Browse files
committed
Remove outdated comment
1 parent 50d31be commit c4c5e11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/components/content/IsaacCoordinateQuestion.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import {IsaacQuestionProps} from "../../../IsaacAppTypes";
77
import {Immutable} from "immer";
88
import QuestionInputValidation from "../elements/inputs/QuestionInputValidation";
99

10-
// Custom input component for coordinates - a pair of inputs, one for x and one for y, formatted with brackets
11-
// and a comma in between.
10+
// Custom input component for coordinates
1211
interface CoordinateInputProps {
1312
value: Immutable<CoordinateItemDTO>;
1413
placeholderValues: string[];
@@ -133,7 +132,7 @@ const IsaacCoordinateQuestion = ({doc, questionId, readonly}: IsaacQuestionProps
133132
onChange={value => updateItem(0, value)}
134133
/>
135134
}
136-
<QuestionInputValidation userInput={currentAttempt?.items?.map(answer => answer.coordinates ?? []) ?? []} validator={coordinateInputValidator} />
135+
<QuestionInputValidation userInput={currentAttempt?.items?.map(answer => answer.coordinates ?? []) ?? []} validator={coordinateInputValidator}/>
137136
{!doc.numberOfCoordinates && <Button color="secondary" size="sm" className="mt-3" onClick={() => updateItem(currentAttempt?.items?.length ?? 1, {...DEFAULT_COORDINATE_ITEM})}>Add coordinate</Button>}
138137
</div>;
139138
};

0 commit comments

Comments
 (0)