From: Jay Sitter Date: Sat, 17 Jun 2023 23:16:24 +0000 (-0400) Subject: fix: Remove unused var X-Git-Url: http://these/git/ui/assets/static/%7Bthis.state.url%7D?a=commitdiff_plain;h=ffaa3c4fc5eb1230a559a60b3acbbe575d013583;p=lemmy-ui.git fix: Remove unused var --- diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index 483d8cc..c7fccb8 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -448,7 +448,7 @@ export class Home extends Component { )} {showTrendingMobile && (
- {this.trendingCommunities(true)} + {this.trendingCommunities}
)} {showSubscribedMobile && ( @@ -472,7 +472,7 @@ export class Home extends Component { return (
- {this.trendingCommunities()} + {this.trendingCommunities}
{ ); } - trendingCommunities(isMobile = false) { + trendingCommunities() { switch (this.state.trendingCommunitiesRes?.state) { case "loading": return (