mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-26 06:20:42 -05:00
fix: display from updating consecutive zeros.
ie 000
This commit is contained in:
parent
93a933af92
commit
a3fe4d397a
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ const ops = {
|
|||
display.textContent = "0";
|
||||
},
|
||||
appendNumber: function(num) {
|
||||
if(num === "0" && display.textContent === "0") return
|
||||
if(!ops.numFlag && ops.checkLength(ops.firstNum)) {
|
||||
ops.firstNum += num;
|
||||
updateDisplay(ops.firstNum);
|
||||
|
|
Loading…
Reference in a new issue