Skip to content

Commit

Permalink
🐛 fix the bug when you want to make several calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary-Masson committed Jun 16, 2024
1 parent f46a3d9 commit a1792f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ function EqualButton() {

function SignButton(sign) {
currentSign = sign;
if (oldNumber != "") {
EqualButton();
}

oldNumber = currentNumber;
currentNumber = "0";
RefreshResult();
Expand Down

0 comments on commit a1792f2

Please sign in to comment.