|
|
@ -100,6 +100,7 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
|
|
|
|
private func updateBalance() { |
|
|
|
let balance = user?.availableBalance ?? "" |
|
|
|
UserDefaults.standard.set(balance, forKey: UserKeys.availableBalance) |
|
|
|
let userInfo = [SideMenuNavigationNotifications.availableBalance : balance] |
|
|
|
NotificationCenter.default.post(name: self.getAvailableBalanceNotificationName(), object: nil, userInfo: userInfo) |
|
|
|
} |
|
|
|