dkforest

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

commit 86e53cc5b0f074e60a96cc591f738722927e7569
parent 222f794700a2560b869b1d121c7c6ff36dbef95f
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 14 Dec 2023 04:21:07 -0500

cleanup

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

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -775,9 +775,10 @@ func PokerHomeHandler(c echo.Context) error { data.Transactions, _ = db.GetUserPokerXmrTransactions(authUser.ID) data.PokerXmrSubAddress = authUser.PokerXmrSubAddress data.XmrBalanceStagenet = authUser.XmrBalanceStagenet - data.WithdrawUnique = rand.Int63() + withdrawUnique := rand.Int63() + data.WithdrawUnique = withdrawUnique withdrawUniqueOrig, _ := pokerWithdrawCache.Get(authUser.ID) - pokerWithdrawCache.SetD(authUser.ID, data.WithdrawUnique) + pokerWithdrawCache.SetD(authUser.ID, withdrawUnique) data.Tables, _ = db.GetPokerTables() data.WithdrawAmount = minWithdrawAmount if authUser.PokerXmrSubAddress != "" {