From 6adab1c1b8fc31b9016682fdc85646e7940dd9de Mon Sep 17 00:00:00 2001 From: Steven Primeaux <58159084+Auxdible@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:26:39 -0400 Subject: [PATCH] fix: issue with cash register input check (#595) --- apps/cash-register/public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cash-register/public/script.js b/apps/cash-register/public/script.js index 9786496a..7ee7c26a 100644 --- a/apps/cash-register/public/script.js +++ b/apps/cash-register/public/script.js @@ -59,7 +59,7 @@ const checkCashRegister = () => { } for (let i = 0; i <= reversedCid.length; i++) { - if (changeDue > denominations[i] && changeDue > 0) { + if (changeDue >= denominations[i] && changeDue > 0) { let count = 0; let total = reversedCid[i][1]; while (total > 0 && changeDue >= denominations[i]) {