Skip to content

Commit 8bc884a

Browse files
author
Nathan Esayeas
authored
Update console.js
`currentAmount` isn't declared in `setBetToLua(...)`
1 parent 08d474a commit 8bc884a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/console.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ async function betScript(req) {
276276
try {
277277
iswin = getWinStatus(ret);
278278
setStreak(iswin, currentAmount);
279-
setBetToLua(ret, currencyValue);
279+
setBetToLua(ret, currencyValue, currentAmount);
280280
req.logdata = consoleData(ret, iswin);
281281
consoleStats(ret.info, currencyValue);
282282
} catch(err){
@@ -363,7 +363,7 @@ function setStreak(win, currentAmount){
363363
}
364364
}
365365

366-
function setBetToLua(ret, currencyValue){
366+
function setBetToLua(ret, currencyValue, currentAmount){
367367
profit = getProfit(ret.info,currencyValue);
368368
balance = getBalance(ret.info)
369369
win = getWinStatus(ret);

0 commit comments

Comments
 (0)