Skip to content

Commit

Permalink
Linting error on target declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
1Copenut committed Apr 11, 2024
1 parent 7c155dc commit bd2275e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/form/range/range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class EuiRangeClass extends Component<
if (!currentVal) return;

let ariaValueNow;
let target = Number(currentVal); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/Number#return_value
const target = Number(currentVal); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/Number#return_value

if (!Number.isNaN(target)) {
ariaValueNow = target;
Expand All @@ -135,7 +135,7 @@ export class EuiRangeClass extends Component<
currentVal: string | number
): string | undefined => {
let ariaValueText;
let target = ticks.find(
const target = ticks.find(
(tick) => tick.value.toString() === currentVal.toString()
);

Expand Down

0 comments on commit bd2275e

Please sign in to comment.