Skip to content

Commit

Permalink
web: Fix error message when defining variables, closing #141
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddiM8 committed Mar 30, 2024
1 parent 1722f36 commit 5a02f09
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion web/src/KalkCalculator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
try {
if (!kalkContext) kalkContext = new kalk.Context();
const result = kalkContext.evaluate(input.replaceAll(/\s+/g, " "));
console.log(result.setRadix(currentBase))
if (result && !result.setRadix(currentBase)) {
return ["Invalid base", false];
}
Expand Down

0 comments on commit 5a02f09

Please sign in to comment.