Skip to content

Commit

Permalink
use friendly iterator name
Browse files Browse the repository at this point in the history
  • Loading branch information
george-misan committed Jan 24, 2025
1 parent 2525009 commit fda9e4a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,21 @@ const SelectCourseInstanceForm: React.FC<
// eslint-disable-next-line i18next/no-literal-string
aria-required="true"
>
{courseInstances.map((x) => (
<div key={x.id}>
{courseInstances.map((courseInstance) => (
<div key={courseInstance.id}>
<RadioButton
key={x.id}
{...(x.name === null
key={courseInstance.id}
{...(courseInstance.name === null
? // eslint-disable-next-line i18next/no-literal-string
{ "data-testid": "default-course-instance-radiobutton" }
: undefined)}
label={x.name || t("default-course-instance-name")}
onChange={(_event) => setSelectedInstanceId(x.id)}
checked={selectedInstanceId === x.id}
label={courseInstance.name || t("default-course-instance-name")}
onChange={(_event) => setSelectedInstanceId(courseInstance.id)}
checked={selectedInstanceId === courseInstance.id}
// eslint-disable-next-line i18next/no-literal-string
name="select-course-instance"
/>
<span>{x.description}</span>
<span>{courseInstance.description}</span>
</div>
))}
</FieldContainer>
Expand Down

0 comments on commit fda9e4a

Please sign in to comment.