Skip to content

Commit

Permalink
- bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
overtake committed Jun 30, 2024
1 parent 8b8762d commit 49b4934
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Telegram-Mac/Fragment_BalanceRowItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ final class Fragment_BalanceRowItem : GeneralRowItem {
self.balance = balance
self.transfer = transfer
self.buyAds = buyAds
var canWithdraw = canWithdraw
if let nextWithdrawalTimestamp, nextWithdrawalTimestamp - context.timestamp >= 0 {
canWithdraw = false
}
self.canWithdraw = canWithdraw
self.nextWithdrawalTimestamp = nextWithdrawalTimestamp
let tonBalance = NSAttributedString.initialize(string: formatCurrencyAmount(balance.amount, currency: balance.currency.rawValue).prettyCurrencyNumber, color: theme.colors.text, font: .medium(40)).smallDecemial
Expand Down

0 comments on commit 49b4934

Please sign in to comment.