Browse Source

bug fixed available balance in profile

pull/1/head
gme_2 6 years ago
parent
commit
93b22b9207
  1. 1
      GMERemittance/Module/Home/User Interface/View/HomeViewController.swift
  2. 1
      GMERemittance/Profile/ProfileViewController.swift

1
GMERemittance/Module/Home/User Interface/View/HomeViewController.swift

@ -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)
}

1
GMERemittance/Profile/ProfileViewController.swift

@ -30,7 +30,6 @@ class ProfileViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
show()
}
func show() {

Loading…
Cancel
Save