Skip to content

Commit 6adab1c

Browse files
authored
fix: issue with cash register input check (#595)
1 parent 8a76179 commit 6adab1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/cash-register/public/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const checkCashRegister = () => {
5959
}
6060

6161
for (let i = 0; i <= reversedCid.length; i++) {
62-
if (changeDue > denominations[i] && changeDue > 0) {
62+
if (changeDue >= denominations[i] && changeDue > 0) {
6363
let count = 0;
6464
let total = reversedCid[i][1];
6565
while (total > 0 && changeDue >= denominations[i]) {

0 commit comments

Comments
 (0)