damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 584a20ade172c3e7449c8c507d2e3c3486efb077
parent 67041b22f470e8c1faa7149334257124b11d41a1
Author: Bryan Montz <bryanmontz@me.com>
Date:   Sat,  1 Apr 2023 10:54:46 -0500

Don't show NIP-05 validation error message when field is empty

Closes: #852

Diffstat:
Mdamus/Views/EditMetadataView.swift | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/damus/Views/EditMetadataView.swift b/damus/Views/EditMetadataView.swift @@ -202,8 +202,10 @@ struct EditMetadataView: View { }, footer: { if let parts = nip05_parts { Text("'\(parts.username)' at '\(parts.host)' will be used for verification", comment: "Description of how the nip05 identifier would be used for verification.") - } else { + } else if !nip05.isEmpty { Text("'\(nip05)' is an invalid NIP-05 identifier. It should look like an email.", comment: "Description of why the nip05 identifier is invalid.") + } else { + Text("") // without this, the keyboard dismisses unnecessarily when the footer changes state } })