Avoid showing wrong alert message for pubkey login user.
This commit is contained in:
@@ -135,7 +135,11 @@ struct SideMenuView: View {
|
|||||||
|
|
||||||
Button(action: {
|
Button(action: {
|
||||||
//ConfigView(state: damus_state)
|
//ConfigView(state: damus_state)
|
||||||
confirm_logout = true
|
if damus_state.keypair.privkey == nil {
|
||||||
|
notify(.logout, ())
|
||||||
|
} else {
|
||||||
|
confirm_logout = true
|
||||||
|
}
|
||||||
}, label: {
|
}, label: {
|
||||||
Label(NSLocalizedString("Sign out", comment: "Sidebar menu label to sign out of the account."), systemImage: "pip.exit")
|
Label(NSLocalizedString("Sign out", comment: "Sidebar menu label to sign out of the account."), systemImage: "pip.exit")
|
||||||
.font(.title3)
|
.font(.title3)
|
||||||
|
|||||||
Reference in New Issue
Block a user