dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 8b31c066c36fcd8e89b5fa56036d4b8b268623a6
parent 3cc5b6472c4e037cdfd9ef429f1b961af0b017ec
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 25 Dec 2023 22:18:35 -0500

fix

Diffstat:
Mpkg/web/handlers/poker/poker.go | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1506,7 +1506,10 @@ func processPot(winners []gameResult, mainPot, pokerTableMinBet database.PokerCh } groupPlayers := group.players groupPlayersLen := len(groupPlayers) - handStr := utils.Ternary(isOnlyPlayerAlive, "Only player alive", poker.RankString(group.handScore)) + handStr := "Only player alive" + if !isOnlyPlayerAlive { + handStr = poker.RankString(group.handScore) + } allInCount := 0 calcExpectedSplit := func() database.PokerChip { return mainPot / utils.MaxInt(database.PokerChip(groupPlayersLen-allInCount), 1)