mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 16:37:06 +02:00
fix: parse address
This commit is contained in:
@@ -21,7 +21,10 @@ export function useRepositoryRelays(repoAddress: string | undefined): {
|
||||
repositoryEvent: NostrEvent | undefined;
|
||||
} {
|
||||
const repoPointer = useMemo(
|
||||
() => (repoAddress ? parseReplaceableAddress(repoAddress) : undefined),
|
||||
() =>
|
||||
repoAddress
|
||||
? (parseReplaceableAddress(repoAddress) ?? undefined)
|
||||
: undefined,
|
||||
[repoAddress],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user