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