From e977305a0e333750352bf52ed223060845b66a3b Mon Sep 17 00:00:00 2001 From: krawieck Date: Tue, 15 Sep 2020 23:46:55 +0200 Subject: [PATCH] remove useless check. also fix an error --- lib/pages/community.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/community.dart b/lib/pages/community.dart index b2cb03b..c5db40a 100644 --- a/lib/pages/community.dart +++ b/lib/pages/community.dart @@ -50,9 +50,9 @@ class CommunityPage extends HookWidget { final theme = Theme.of(context); var fullCommunitySnap = useMemoFuture(() { final auth = tokenOrNull(context, instanceUrl); - if (communityId != null && instanceUrl != null) { - return LemmyApi(_community.instanceUrl).v1.getCommunity( - id: _community.id, + if (communityId != null) { + return LemmyApi(instanceUrl).v1.getCommunity( + id: communityId, auth: auth, ); } else {