diff --git a/app/soapbox/components/ui/toggle/toggle.tsx b/app/soapbox/components/ui/toggle/toggle.tsx index abf7933c5..1b34dde3c 100644 --- a/app/soapbox/components/ui/toggle/toggle.tsx +++ b/app/soapbox/components/ui/toggle/toggle.tsx @@ -6,7 +6,7 @@ interface IToggle extends Pick, 'id' } /** A glorified checkbox. */ -const Toggle: React.FC = ({ id, size = 'md', name, checked, onChange, required, disabled }) => { +const Toggle: React.FC = ({ id, size = 'md', name, checked = false, onChange, required, disabled }) => { const input = useRef(null); const handleClick: React.MouseEventHandler = () => { diff --git a/app/soapbox/features/hashtag-timeline/index.tsx b/app/soapbox/features/hashtag-timeline/index.tsx index 69cc0cd60..df0c05236 100644 --- a/app/soapbox/features/hashtag-timeline/index.tsx +++ b/app/soapbox/features/hashtag-timeline/index.tsx @@ -41,7 +41,7 @@ export const HashtagTimeline: React.FC = ({ params }) => { useEffect(() => { dispatch(expandHashtagTimeline(id)); dispatch(fetchHashtag(id)); - }, []); + }, [id]); useEffect(() => { dispatch(clearTimeline(`hashtag:${id}`));