Skip to content

Commit

Permalink
Update src/components/form/range/range.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Cee Chen <[email protected]>
  • Loading branch information
1Copenut and cee-chen authored Apr 16, 2024
1 parent f3b701e commit 87ea5d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/form/range/range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ export class EuiRangeClass extends Component<
if (target) {
return target.accessibleLabel
? `${target.value}, (${target.accessibleLabel})`
// Fall back to the label if it's a usable string
: typeof target.label === 'string'
: typeof target.label === 'string' // Fall back to the label if it's a usable string
? `${target.value}, (${target.label})`
: undefined;
}
Expand Down

0 comments on commit 87ea5d5

Please sign in to comment.