commit 1523a409a07a87ed9cc9b9781b35a276bb7a2659
parent e7dc7f4db20bf5760b83ef4574d63ff2e81564e8
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sat, 16 Dec 2023 01:57:24 -0500
ui
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -790,7 +790,7 @@ func PokerHomeHandler(c echo.Context) error {
}
data.Tables = append(data.Tables, TmpTable{PokerTable: t, NbSeated: nbSeated})
}
- data.WithdrawAmount = minWithdrawAmount
+
if authUser.PokerXmrSubAddress != "" {
b, _ := authUser.GetImage()
data.Img = getImgStr(b)
diff --git a/pkg/web/public/views/pages/poker.gohtml b/pkg/web/public/views/pages/poker.gohtml
@@ -38,7 +38,7 @@
<input type="hidden" name="csrf" value="{{ .CSRF }}" />
<input type="hidden" name="withdraw_unique" value="{{ .Data.WithdrawUnique }}" />
<input type="text" name="withdraw_address" value="{{ .Data.WithdrawAddress }}" placeholder="address" class="form-control mr-2" style="width: 400px;" />
- <input type="number" name="withdraw_amount" value="{{ .Data.WithdrawAmount }}" min="{{ .Data.MinWithdrawAmount }}" max="{{ .Data.XmrBalance }}" placeholder="amount" class="form-control mr-2" style="width: 150px;" />
+ <input type="number" name="withdraw_amount" value="{{ if gt .Data.WithdrawAmount 0 }}{{ .Data.WithdrawAmount }}{{ end }}" min="{{ .Data.MinWithdrawAmount }}" max="{{ .Data.XmrBalance }}" placeholder="amount (pXMR)" class="form-control mr-2" style="width: 150px;" />
<button class="btn btn-primary">Withdraw</button>
</form>
<div>To withdraw, use the "balance" (<small>{{ .Data.XmrBalance.RawString }} <small>pXMR</small></small>) which denomination is in <a href="https://www.getmonero.org/resources/moneropedia/denominations.html" rel="noopener noreferrer" target="_blank">piconero</a></div>