This commit is contained in:
Jorik Schellekens
2020-04-23 14:39:11 +01:00
parent 06f4eca05d
commit 4b4599c1d8
+2 -2
View File
@@ -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;
}