commit 85693aa9f46404cf9c370a67e86be0ddf6adb4d6
parent ec4a6cf4ae6e1e12a11602538ff0403b528146d0
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sat, 16 Dec 2023 16:05:16 -0500
default buy-in
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1468,6 +1468,9 @@ func PokerSitHandler(c echo.Context) error {
return c.HTML(http.StatusOK, html)
}
playerBuyIn := database.PokerChip(utils.DoParseUint64(c.QueryParam("buy-in")))
+ if playerBuyIn == 0 {
+ playerBuyIn = tableMinBuyIn
+ }
if playerBuyIn < tableMinBuyIn {
PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: fmt.Sprintf("buy-in too low; min buy in: %d", tableMinBuyIn)})
return c.HTML(http.StatusOK, html)