dkforest

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

commit 513e323d1d30d3cb04d68a9acefa171c1a331354
parent 86e53cc5b0f074e60a96cc591f738722927e7569
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 14 Dec 2023 04:24:54 -0500

cleanup

Diffstat:
Mpkg/web/handlers/handlers.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -790,7 +790,8 @@ func PokerHomeHandler(c echo.Context) error { return c.Render(http.StatusOK, "poker", data) } - data.WithdrawAmount = database.Piconero(utils.DoParseUint64(c.Request().PostFormValue("withdraw_amount"))) + withdrawAmount := database.Piconero(utils.DoParseUint64(c.Request().PostFormValue("withdraw_amount"))) + data.WithdrawAmount = withdrawAmount data.WithdrawAddress = c.Request().PostFormValue("withdraw_address") withdrawUniqueSub := utils.DoParseInt64(c.Request().PostFormValue("withdraw_unique")) if withdrawUniqueOrig == 0 || withdrawUniqueSub != withdrawUniqueOrig { @@ -805,7 +806,6 @@ func PokerHomeHandler(c echo.Context) error { data.Error = "cannot withdraw to the deposit address" return c.Render(http.StatusOK, "poker", data) } - withdrawAmount := data.WithdrawAmount if withdrawAmount < minWithdrawAmount { data.Error = fmt.Sprintf("minimum withdraw amount is %d", minWithdrawAmount) return c.Render(http.StatusOK, "poker", data)