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 authored and William Casarin committed 2023-01-05 09:19:25 -08:00
1 parent 4d358415bd
commit c58c349053
1 file changed
+1 -1
+1 -1
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)
}