diff --git a/src/components/DrawPDFFields/internal/Counterpart.tsx b/src/components/DrawPDFFields/internal/Counterpart.tsx index b66cb8b..508792d 100644 --- a/src/components/DrawPDFFields/internal/Counterpart.tsx +++ b/src/components/DrawPDFFields/internal/Counterpart.tsx @@ -26,7 +26,7 @@ export const Counterpart = React.memo( return (
{ const ndkRelayList = await getNDKRelayList(receiver) - const readRelayUrls = [...ndkRelayList.readRelayUrls] + const readRelayUrls: string[] = [] + + if (ndkRelayList?.readRelayUrls) { + readRelayUrls.push(...ndkRelayList.readRelayUrls) + } + if (!readRelayUrls.includes(SIGIT_RELAY)) { readRelayUrls.push(SIGIT_RELAY) }