1
0
mirror of git://jb55.com/damus synced 2024-09-20 03:57:06 +00:00

Hide Edit Button on Profile Page for the user not logged in w/Private Key

Changelog-Fixed: Hide edit button on profile page when no private key
Closes: #215
This commit is contained in:
Swift 2023-01-02 18:32:33 -08:00 committed by William Casarin
parent 8428f0af43
commit 2348f64dff
2 changed files with 5 additions and 3 deletions

View File

@ -196,10 +196,12 @@ struct ProfileView: View {
follow_state: damus_state.contacts.follow_state(profile.pubkey)
)
} else {
if damus_state.keypair.privkey != nil {
NavigationLink(destination: EditMetadataView(damus_state: damus_state)) {
EditButton(damus_state: damus_state)
}
}
}
}