From f69d61c1c2792eb06a1d988c23254e68b561159d Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Sun, 7 Jan 2024 20:51:53 -0500 Subject: [PATCH] fix --- apps/builddao/widget/Feed.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/builddao/widget/Feed.jsx b/apps/builddao/widget/Feed.jsx index 9e4a75b3..2dbd104c 100644 --- a/apps/builddao/widget/Feed.jsx +++ b/apps/builddao/widget/Feed.jsx @@ -4,7 +4,9 @@ const { Aside } = VM.require("buildhub.near/widget/Aside"); Feed = Feed || (() => <>); // ensure it's defined or set to a default component Aside = Aside || (() => <>); // ensure it's defined or set to a default component -const hashtag = props.hashtag; +const { type, hashtag } = props; +type = hashtag; +hashtag = type; const Container = styled.div` display: grid; @@ -25,7 +27,7 @@ const MainContent = styled.div` grid-column: span 4 / span 4; `; -const [activeFeed, setActiveFeed] = useState(hashtag || "resolutions"); +const [activeFeed, setActiveFeed] = useState(type || "resolutions"); const [template, setTemplate] = useState("What did you have in mind?"); function formatDate(date) {