feat: Changed flag to support negative value comparisons
This commit is contained in:
parent
a15c573f94
commit
2e4c76a257
|
@ -30,7 +30,12 @@ export function SubmitButton({
|
|||
if (!!Number(inputValue) && inputValue >= 0) {
|
||||
nextStepInput(obj);
|
||||
} else if (!!Number(inputValue) && inputValue < 0) {
|
||||
alert("Negative numbers not yet allowed");
|
||||
alert("Suport for negative numbers experimental");
|
||||
nextStepInput({
|
||||
...obj,
|
||||
inputValue: inputValue,
|
||||
squiggleString: inputValue,
|
||||
});
|
||||
} else {
|
||||
let potentialSquiggleOutput = await squiggleWrapper(inputValue);
|
||||
if (!!Number(potentialSquiggleOutput)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user