Skip to content

Commit 0f0658e

Browse files
committed
fix not loaded comments
1 parent d607108 commit 0f0658e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/models/comment.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Comment {
1111
final Author? author;
1212
final String? message;
1313

14-
bool get notBanned => banned;
14+
bool get notBanned => !banned;
1515

1616
Comment({
1717
required this.id,

lib/stores/habr_storage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class HabrStorage {
7878
Future<Comments> _checkCachedCommentsAuthors(Comments comments) async {
7979
final authorsId = comments.comments.values
8080
.where((element) => element.notBanned)
81-
.map((comment) => comment.author?.id)
81+
.map((comment) => comment.author?.id ?? '')
8282
.toSet();
8383
final cachedAuthors =
8484
await Future.wait(authorsId.map((e) => this.authors.get(e))).then(

0 commit comments

Comments
 (0)