Browse Source

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
post-button-style
Swift 2 years ago
committed by William Casarin
parent
commit
2348f64dff
  1. 2
      damus/Views/ProfileView.swift

2
damus/Views/ProfileView.swift

@ -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)
}
}
}
}

Loading…
Cancel
Save