diff --git a/damus/Views/EditMetadataView.swift b/damus/Views/EditMetadataView.swift index 2f1710a..d419234 100644 --- a/damus/Views/EditMetadataView.swift +++ b/damus/Views/EditMetadataView.swift @@ -174,7 +174,7 @@ struct EditMetadataView: View { Text(String.localizedStringWithFormat("'%@' is an invalid nip05 identifier. It should look like an email.", nip05)) } }) - + Button("Save") { save() dismiss() diff --git a/damus/Views/ProfileView.swift b/damus/Views/ProfileView.swift index 68a80bf..3716e5a 100644 --- a/damus/Views/ProfileView.swift +++ b/damus/Views/ProfileView.swift @@ -196,8 +196,10 @@ struct ProfileView: View { follow_state: damus_state.contacts.follow_state(profile.pubkey) ) } else { - NavigationLink(destination: EditMetadataView(damus_state: damus_state)) { - EditButton(damus_state: damus_state) + if damus_state.keypair.privkey != nil { + NavigationLink(destination: EditMetadataView(damus_state: damus_state)) { + EditButton(damus_state: damus_state) + } } }