From 48f85f54c8ce11787452fc55796a0618d208d21e Mon Sep 17 00:00:00 2001 From: daniyal Date: Mon, 6 Jan 2025 16:04:54 +0500 Subject: [PATCH] chore: quick fixes --- src/components/DrawPDFFields/internal/Counterpart.tsx | 2 +- src/hooks/useNDK.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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) }