Skip to content

Commit

Permalink
correções
Browse files Browse the repository at this point in the history
  • Loading branch information
zzmarques committed Mar 27, 2024
1 parent 0844961 commit 4ce2548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ function addDisplay(value) {
}

function processOperation(value) {
if (currentOperand.innerText === '' && previousOperand.innerText === '') {
return
}
previousOperand.innerHTML = currentOperand.innerText + ' ' + value
currentOperand.innerText = ''
}
Expand Down
2 changes: 1 addition & 1 deletion style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ button:hover {
border: 1px solid var(--cor05);
}
.op:hover {
background-color: var(--cor01);
background-color: var(--cor03);
border: none;
}
#a {
Expand Down

0 comments on commit 4ce2548

Please sign in to comment.