Browse Source

Avoid showing wrong alert message for pubkey login user.

translations_damus-localizations-en-us-xcloc-localized-contents-en-us-xliff--master_es_419
Swift 2 years ago
committed by William Casarin
parent
commit
73110952e5
  1. 6
      damus/Views/SideMenuView.swift

6
damus/Views/SideMenuView.swift

@ -135,7 +135,11 @@ struct SideMenuView: View {
Button(action: {
//ConfigView(state: damus_state)
confirm_logout = true
if damus_state.keypair.privkey == nil {
notify(.logout, ())
} else {
confirm_logout = true
}
}, label: {
Label(NSLocalizedString("Sign out", comment: "Sidebar menu label to sign out of the account."), systemImage: "pip.exit")
.font(.title3)

Loading…
Cancel
Save