From 9e64d02f90e2fcd30747272f6f067a069f3cb85e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Fri, 23 Sep 2022 10:25:38 +0100 Subject: [PATCH] fix: undefined variable error --- lib/bill-math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bill-math.js b/lib/bill-math.js index fbb3ee99..0b7c5a1a 100644 --- a/lib/bill-math.js +++ b/lib/bill-math.js @@ -109,7 +109,7 @@ function makeChange(outCassettes, amount) { ) if (available < amount) { - console.log(`Tried to dispense more than was available for amount ${amount.toNumber()} with cassettes ${JSON.stringify(cassettes)}`) + console.log(`Tried to dispense more than was available for amount ${amount.toNumber()} with cassettes ${JSON.stringify(outCassettes)}`) return null }