remove useless check. also fix an error

This commit is contained in:
krawieck 2020-09-15 23:46:55 +02:00
parent b329a5fe4e
commit e977305a0e
1 changed files with 3 additions and 3 deletions

View File

@ -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 {