younger_times
2023-05-06 a8c2422e12becdfc3da0907ff5b589f7f86d0dd5
BrokerDriver/Profile/VC/PersonalCenterVC.swift
@@ -42,12 +42,10 @@
    }
    @IBAction func logOutAction(_ sender: UIButton) {
        showAlert(title: "Would you like to log out?", message: nil, buttonTitles: ["YES","NO"], highlightedButtonIndex: 0) { index in
            if index == 0{
                let nav = BaseNavigationController(rootViewController: LoginVC())
                UserViewModel.clearUserInfo()
                screnDelegate?.window?.rootViewController = nav
            }
        CommonAlertView.show(title: "Prompt!", content: "Would you like to log out?", bt1: "No just yet", bt2: "Logout") {
            let nav = BaseNavigationController(rootViewController: LoginVC())
            UserViewModel.clearUserInfo()
            screnDelegate?.window?.rootViewController = nav
        }
    }
}