web: Fix error message when defining variables, closing #141

This commit is contained in:
PaddiM8 2024-03-30 16:58:07 +01:00
parent 1722f365e6
commit 5a02f09aa4

View File

@ -101,7 +101,6 @@
try { try {
if (!kalkContext) kalkContext = new kalk.Context(); if (!kalkContext) kalkContext = new kalk.Context();
const result = kalkContext.evaluate(input.replaceAll(/\s+/g, " ")); const result = kalkContext.evaluate(input.replaceAll(/\s+/g, " "));
console.log(result.setRadix(currentBase))
if (result && !result.setRadix(currentBase)) { if (result && !result.setRadix(currentBase)) {
return ["Invalid base", false]; return ["Invalid base", false];
} }