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); final theme = Theme.of(context);
var fullCommunitySnap = useMemoFuture(() { var fullCommunitySnap = useMemoFuture(() {
final auth = tokenOrNull(context, instanceUrl); final auth = tokenOrNull(context, instanceUrl);
if (communityId != null && instanceUrl != null) { if (communityId != null) {
return LemmyApi(_community.instanceUrl).v1.getCommunity( return LemmyApi(instanceUrl).v1.getCommunity(
id: _community.id, id: communityId,
auth: auth, auth: auth,
); );
} else { } else {