browser crash fix
This commit is contained in:
parent
2380b9ad51
commit
f84250cb6f
@ -40,10 +40,11 @@ export default function EventsFromCalendar({
|
|||||||
identifier,
|
identifier,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} else {
|
} else if (nip19.BECH32_REGEX.test(e)) {
|
||||||
return nip19.decode(e);
|
return nip19.decode(e);
|
||||||
}
|
} else return;
|
||||||
})
|
})
|
||||||
|
.filter(Boolean)
|
||||||
.filter(({ type }) => type === "naddr")
|
.filter(({ type }) => type === "naddr")
|
||||||
.map((e) => e.data as nip19.AddressPointer);
|
.map((e) => e.data as nip19.AddressPointer);
|
||||||
const { events, isLoading } = useEvents({
|
const { events, isLoading } = useEvents({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user