fix: Prevent displayOutput from clearing state on Infinity/NaN

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-03-14 17:07:05 -06:00
committed by Tanner
parent e8a361210d
commit 77288c92af
-6
View File
@@ -242,12 +242,6 @@ function displayOutput(num) {
} else { } else {
num = 'NaN'; num = 'NaN';
} }
currNumber = null;
results = null;
isDecimal = false;
hasPressedEquals = false;
prevNumber = null;
operator = null;
specials.R.val = 'AC'; specials.R.val = 'AC';
if (!swipeEnabled) drawKey('R', specials.R); if (!swipeEnabled) drawKey('R', specials.R);
} else { } else {