Fixed withdrawal button for credits with minimal amount.

This commit is contained in:
23rd 2024-06-21 16:56:53 +03:00 committed by John Preston
parent cad25ae644
commit ffa4b1db87

View file

@ -488,7 +488,7 @@ void InnerWidget::fill() {
.creditsAmount = [=, show = _controller->uiShow()] {
const auto amount = input->getLastText().toULongLong();
const auto min = float64(WithdrawalMin(session));
if (amount <= min) {
if (amount < min) {
auto text = tr::lng_bot_earn_credits_out_minimal(
tr::now,
lt_link,