chore: use-ndk #283

Merged
s merged 18 commits from use-ndk into staging 2025-01-06 11:10:49 +00:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 48f85f54c8 - Show all commits

View File

@ -26,7 +26,7 @@ export const Counterpart = React.memo(
return (
<div className={styles.counterpartSelectValue}>
<AvatarIconButton
src={profile.image}
src={profile?.image}
Outdated
Review

Had this error during test on Create page: Uncaught TypeError: Cannot read properties of undefined (reading 'image') after selecting DrawnField rect.

Steps:

  1. Create a new sigit, add files, and after navigating to Create Page
  2. Add field with any tool
  3. Click the box - error
Had this error during test on Create page: `Uncaught TypeError: Cannot read properties of undefined (reading 'image')` after selecting `DrawnField` rect. Steps: 1. Create a new sigit, add files, and after navigating to `Create Page` 2. Add field with any tool 3. Click the box - error
Outdated
Review

I tested multiple times and it worked every time

I tested multiple times and it worked every time
hexKey={signer.pubkey || undefined}
sx={{
padding: 0,

View File

@ -472,7 +472,12 @@ export const useNDK = () => {
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)
}