Skip to content

Commit f69fe98

Browse files
authored
Merge pull request #64 from nathane/patch-2
fix: currentAmount is not defined
2 parents bb9f49f + 3a41a5a commit f69fe98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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);

src/views/info.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ block content
25022502
try {
25032503
iswin = getWinStatus(ret);
25042504
setStreak(iswin, currentAmount);
2505-
setBetToLua(ret, currencyValue);
2505+
setBetToLua(ret, currencyValue, currentAmount);
25062506
if(toggleChart) {
25072507
setChart(ret, count, currencyValue);
25082508
}
@@ -2673,7 +2673,7 @@ block content
26732673
bet_current_stats_seed:seed,
26742674
});
26752675
}
2676-
function setBetToLua(ret, currencyValue){
2676+
function setBetToLua(ret, currencyValue, currentAmount){
26772677
currentstreak = $$('bet_current_stats2').getValues().bet_current_stats_current_streak;
26782678
profit = getProfit(ret.info,currencyValue);
26792679
balance = getBalance(ret.info)

0 commit comments

Comments
 (0)