tslint
parent
06f4eca05d
commit
4b4599c1d8
|
@ -50,12 +50,12 @@ export default class Slider extends React.Component<IProps> {
|
|||
}, 0);
|
||||
|
||||
// Off the left
|
||||
if (closest == 0) {
|
||||
if (closest === 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Off the right
|
||||
if (closest == values.length) {
|
||||
if (closest === values.length) {
|
||||
return 100;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue