Hide profile edit button for pubkey user

Closes: #249
Changelog-Fixed: Hide profile edit button when logged in with pubkey
This commit is contained in:
Swift
2023-01-04 19:02:19 -05:00
committed by William Casarin
parent 4d358415bd
commit c58c349053

View File

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