chore: quick fixes
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 44s

This commit is contained in:
daniyal 2025-01-06 16:04:54 +05:00
parent 14c103dd40
commit 48f85f54c8
2 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export const Counterpart = React.memo(
return ( return (
<div className={styles.counterpartSelectValue}> <div className={styles.counterpartSelectValue}>
<AvatarIconButton <AvatarIconButton
src={profile.image} src={profile?.image}
hexKey={signer.pubkey || undefined} hexKey={signer.pubkey || undefined}
sx={{ sx={{
padding: 0, padding: 0,

View File

@ -472,7 +472,12 @@ export const useNDK = () => {
const ndkRelayList = await getNDKRelayList(receiver) const ndkRelayList = await getNDKRelayList(receiver)
const readRelayUrls = [...ndkRelayList.readRelayUrls] const readRelayUrls: string[] = []
if (ndkRelayList?.readRelayUrls) {
readRelayUrls.push(...ndkRelayList.readRelayUrls)
}
if (!readRelayUrls.includes(SIGIT_RELAY)) { if (!readRelayUrls.includes(SIGIT_RELAY)) {
readRelayUrls.push(SIGIT_RELAY) readRelayUrls.push(SIGIT_RELAY)
} }