]> Untitled Git - lemmy-ui.git/commitdiff
fix: Remove unused var
authorJay Sitter <jay@jaysitter.com>
Sat, 17 Jun 2023 23:16:24 +0000 (19:16 -0400)
committerJay Sitter <jay@jaysitter.com>
Sat, 17 Jun 2023 23:16:52 +0000 (19:16 -0400)
src/shared/components/home/home.tsx

index 483d8ccb872c7196519e77f46b3dbadd25b8f5aa..c7fccb8efa9328b47929176ca8f60be03e4f2a12 100644 (file)
@@ -448,7 +448,7 @@ export class Home extends Component<any, HomeState> {
           )}
           {showTrendingMobile && (
             <div className="card border-secondary mb-3">
-              {this.trendingCommunities(true)}
+              {this.trendingCommunities}
             </div>
           )}
           {showSubscribedMobile && (
@@ -472,7 +472,7 @@ export class Home extends Component<any, HomeState> {
     return (
       <div id="sidebarContainer">
         <section id="sidebarMain" className="card border-secondary mb-3">
-          {this.trendingCommunities()}
+          {this.trendingCommunities}
         </section>
         <SiteSidebar
           site={site}
@@ -494,7 +494,7 @@ export class Home extends Component<any, HomeState> {
     );
   }
 
-  trendingCommunities(isMobile = false) {
+  trendingCommunities() {
     switch (this.state.trendingCommunitiesRes?.state) {
       case "loading":
         return (