diff --git a/app/javascript/flavours/glitch/components/hashtag.jsx b/app/javascript/flavours/glitch/components/hashtag.jsx index 9821cf185..7e87440c6 100644 --- a/app/javascript/flavours/glitch/components/hashtag.jsx +++ b/app/javascript/flavours/glitch/components/hashtag.jsx @@ -63,7 +63,7 @@ export const ImmutableHashtag = ({ hashtag }) => ( to={`/tags/${hashtag.get('name')}`} people={hashtag.getIn(['history', 0, 'accounts']) * 1 + hashtag.getIn(['history', 1, 'accounts']) * 1} // @ts-expect-error - history={hashtag.get('history').reverse().map((day) => day.get('uses')).toArray()} + history={hashtag.get('history')?.reverse().map((day) => day.get('uses')).toArray()} /> ); @@ -82,7 +82,7 @@ const Hashtag = ({ name, href, to, people, uses, history, className, description {description ? ( {description} ) : ( - typeof people !== 'undefined' ? : + !isNaN(people) && (typeof people !== 'undefined' ? : ) )} @@ -92,7 +92,7 @@ const Hashtag = ({ name, href, to, people, uses, history, className, description )} - {withGraph && ( + {withGraph && typeof history !== 'undefined' && (
0)}>