tweak: More informative error messages
This commit is contained in:
parent
3d380e4dfa
commit
f7f77b5723
|
@ -133,10 +133,12 @@ export function SubmitSliderButton({posList, binaryComparisons, sliderValue, toC
|
||||||
//
|
//
|
||||||
console.log("input@SubmitSliderButton")
|
console.log("input@SubmitSliderButton")
|
||||||
console.log(obj)
|
console.log(obj)
|
||||||
if(sliderValue >= 0 ){
|
if (!!Number(sliderValue) && sliderValue >= 0) {
|
||||||
nextStepSlider(obj)
|
nextStepSlider(obj)
|
||||||
}else if(sliderValue < 0){
|
} else if (!!Number(sliderValue) && sliderValue < 0) {
|
||||||
alert("Negative numbers not yet allowed")
|
alert("Negative numbers not yet allowed")
|
||||||
|
} else {
|
||||||
|
alert("Your input is not a number")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user