tweak: More informative error messages

This commit is contained in:
NunoSempere 2021-11-25 00:50:28 +00:00
parent 3d380e4dfa
commit f7f77b5723

View File

@ -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")
} }
} }