Skip to content

Commit

Permalink
small fix for unknown events in feed
Browse files Browse the repository at this point in the history
  • Loading branch information
hzrd149 committed Dec 3, 2024
1 parent 171ddba commit c207344
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import EmbeddedFlareVideo from "../../embed-event/event-types/embedded-flare-vid
import { TimelineNote } from "../../note/timeline-note";
import useEventIntersectionRef from "../../../hooks/use-event-intersection-ref";
import ArticleCard from "../../../views/articles/components/article-card";
import EmbeddedUnknown from "../../embed-event/event-types/embedded-unknown";

function TimelineItem({ event, visible, minHeight }: { event: NostrEvent; visible: boolean; minHeight?: number }) {
const ref = useEventIntersectionRef(event);
Expand Down Expand Up @@ -44,7 +45,7 @@ function TimelineItem({ event, visible, minHeight }: { event: NostrEvent; visibl
content = <ArticleCard article={event} />;
break;
default:
content = <Text>Unknown event kind: {event.kind}</Text>;
content = <EmbeddedUnknown event={event} />;
break;
}

Expand Down

0 comments on commit c207344

Please sign in to comment.