handle invalid tags
This commit is contained in:
@ -150,10 +150,10 @@ function useGoToEvent(props, options) {
|
|||||||
|
|
||||||
function Reaction({ ev }: { ev: TaggedNostrEvent }) {
|
function Reaction({ ev }: { ev: TaggedNostrEvent }) {
|
||||||
const reactedToTag = ev.tags.find((tag: string[]) => tag[0] === "e");
|
const reactedToTag = ev.tags.find((tag: string[]) => tag[0] === "e");
|
||||||
const link = NostrLink.fromTag(reactedToTag);
|
if (!reactedToTag?.length) {
|
||||||
if (!reactedToTag) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
const link = NostrLink.fromTag(reactedToTag);
|
||||||
return (
|
return (
|
||||||
<div className="note card">
|
<div className="note card">
|
||||||
<div className="text-gray-medium font-bold">
|
<div className="text-gray-medium font-bold">
|
||||||
|
Reference in New Issue
Block a user