We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a76179 commit 6adab1cCopy full SHA for 6adab1c
apps/cash-register/public/script.js
@@ -59,7 +59,7 @@ const checkCashRegister = () => {
59
}
60
61
for (let i = 0; i <= reversedCid.length; i++) {
62
- if (changeDue > denominations[i] && changeDue > 0) {
+ if (changeDue >= denominations[i] && changeDue > 0) {
63
let count = 0;
64
let total = reversedCid[i][1];
65
while (total > 0 && changeDue >= denominations[i]) {
0 commit comments