Skip to content

Commit fa4ddc3

Browse files
committed
show principal/proft breakout in payouts
1 parent e007521 commit fa4ddc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

settle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function all ({ bets, hand, rules }) {
151151

152152
bets.payouts = payouts.reduce((memo, payout) => {
153153
if (!payout) return memo
154-
if (process.env.DEBUG) console.log(`[payout] ${payout.type} $${payout.principal + payout.profit}`)
154+
if (process.env.DEBUG) console.log(`[payout] ${payout.type} $${payout.principal + payout.profit} (principal: ${payout.principal}, profit: ${payout.profit})`)
155155

156156
memo.principal += payout.principal
157157
memo.profit += payout.profit

0 commit comments

Comments
 (0)