From 2e4c76a257223287a49655cff339b28897bf35a4 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 11 Apr 2022 13:40:51 -0400 Subject: [PATCH] feat: Changed flag to support negative value comparisons --- lib/submitButton.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/submitButton.js b/lib/submitButton.js index 4e15ecb..80c33f6 100644 --- a/lib/submitButton.js +++ b/lib/submitButton.js @@ -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)) {