fix: Remove unused var

This commit is contained in:
Jay Sitter 2023-06-17 19:16:24 -04:00
parent 0d35d9a8d2
commit ffaa3c4fc5

View file

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