Skip to content

Commit

Permalink
fix: waiting for hashtags
Browse files Browse the repository at this point in the history
  • Loading branch information
OXeu committed Jul 10, 2024
1 parent fa1e205 commit b14bc5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/page/hashtags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Hashtag = {

export function HashtagsPage() {
const { t } = useTranslation();
const [hashtags, setHashtags] = useState<Hashtag[]>([]);
const [hashtags, setHashtags] = useState<Hashtag[]>();
const ref = useRef(false);
useEffect(() => {
if (ref.current) return;
Expand Down Expand Up @@ -47,7 +47,7 @@ export function HashtagsPage() {
</div>

<div className="wauto flex flex-col flex-wrap items-start justify-start">
{hashtags.filter(({ feeds }) => feeds > 0).map((hashtag, index) => {
{hashtags?.filter(({ feeds }) => feeds > 0).map((hashtag, index) => {
return (
<div key={index} className="w-full flex flex-row">
<div className="w-full rounded-2xl m-2 duration-300 flex flex-row items-center space-x-4 ">
Expand Down

0 comments on commit b14bc5f

Please sign in to comment.