1
0
mirror of git://jb55.com/damus synced 2024-09-30 08:50:42 +00:00

Avoid showing wrong alert message for pubkey login user.

This commit is contained in:
Swift 2023-01-13 17:28:43 -05:00 committed by William Casarin
parent d01e7c0595
commit 73110952e5

View File

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