Re-work connections and relay stats

This commit is contained in:
Jon Staab
2024-11-05 12:05:04 -08:00
parent 770ce1a617
commit ecb08cace9
19 changed files with 589 additions and 508 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export const isPublishedProfile = (profile: Profile): profile is PublishedProfil
export const makeProfile = (profile: Partial<Profile> = {}): Profile => {
const address = profile.lud06 || profile.lud16
const lnurl = address ? getLnUrl(address) : null
const lnurl = typeof address === 'string' ? getLnUrl(address) : null
return lnurl ? {lnurl, ...profile} : profile
}