Add null check for nip05 handles
This commit is contained in:
@@ -57,7 +57,9 @@ export const fetchHandles = async (nip05s: string[]) => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
for (const {handle: nip05, info} of res?.data || []) {
|
for (const {handle: nip05, info} of res?.data || []) {
|
||||||
handlesByNip05.set(nip05, info)
|
if (info) {
|
||||||
|
handlesByNip05.set(nip05, info)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const results = await Promise.all(
|
const results = await Promise.all(
|
||||||
|
|||||||
Reference in New Issue
Block a user