Skip to content

Commit

Permalink
auto lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 committed Jan 19, 2024
1 parent 29ba2be commit 9aa62c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ export class CohortToolBar extends React.Component<
this.setState({
errorMessage: localization.InterpretVision.Cohort.errorNumSelected
});
} else if (this.state.cohortNames.includes(cohortName.toLocaleLowerCase())) {
} else if (
this.state.cohortNames.includes(cohortName.toLocaleLowerCase())
) {
this.setState({
errorMessage: localization.InterpretVision.Cohort.errorCohortName
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export function includesSearchVal(
searchVal: string
): boolean {
if (Array.isArray(labels)) {
return labels.some((label) => label.toLocaleLowerCase().includes(searchVal.toLocaleLowerCase()));
return labels.some((label) =>
label.toLocaleLowerCase().includes(searchVal.toLocaleLowerCase())
);
}
return labels.toLocaleLowerCase().includes(searchVal.toLocaleLowerCase());
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ export class CohortStatsHeatmap extends React.Component<
localization.ModelAssessment.ModelOverview
.tableMetricTooltip,
// make metric name lower case in sentence
this.series.xAxis.categories[this.point.x].toLocaleLowerCase(),
this.series.xAxis.categories[
this.point.x
].toLocaleLowerCase(),
cohortNameBold,
pointValue === null
? localization.ModelAssessment.ModelOverview.nA
Expand Down

0 comments on commit 9aa62c9

Please sign in to comment.