mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-12 17:40:52 +01:00
web: Fix error message when defining variables, closing #141
This commit is contained in:
parent
1722f365e6
commit
5a02f09aa4
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user