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:
parent
d01e7c0595
commit
73110952e5
@ -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…
Reference in New Issue
Block a user