From a1792f2e31c6786d2cac609c5121c355cdf30d1d Mon Sep 17 00:00:00 2001 From: Zachary Masson Date: Sun, 16 Jun 2024 06:54:04 +0200 Subject: [PATCH] :bug: fix the bug when you want to make several calculations --- assets/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/main.js b/assets/js/main.js index 9f1e562..07b121d 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -88,6 +88,10 @@ function EqualButton() { function SignButton(sign) { currentSign = sign; + if (oldNumber != "") { + EqualButton(); + } + oldNumber = currentNumber; currentNumber = "0"; RefreshResult();