Skip to content

Commit

Permalink
Merge pull request #785 from bounswe/app-784/fix-settled-filter-in-ho…
Browse files Browse the repository at this point in the history
…mepage

settled filter fixed
  • Loading branch information
simarahmtkhy authored Dec 25, 2023
2 parents b1f1801 + fce75ba commit 22313fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/mobile/lib/view/guestFeed/guestFeed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ class _GuestFeedState extends State<GuestFeed>
shrinkWrap: true,
itemCount: posts
.where((post) =>
post.isSettled == 1 &&
post.isSettled == 2 &&
post.approvedStatus == true)
.length,
itemBuilder: (context, index) {
final filteredPosts = posts
.where((post) =>
post.isSettled == 1 &&
post.isSettled == 2 &&
post.approvedStatus == true)
.toList();
final post = filteredPosts[index];
Expand Down
4 changes: 2 additions & 2 deletions app/mobile/lib/view/homePage/homePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ class _HomePageState extends State<HomePage>
shrinkWrap: true,
itemCount: posts
.where((post) =>
post.isSettled == 1 &&
post.isSettled == 2 &&
post.approvedStatus == true)
.length,
itemBuilder: (context, index) {
final filteredPosts = posts
.where((post) =>
post.isSettled == 1 &&
post.isSettled == 2 &&
post.approvedStatus == true)
.toList();
final post = filteredPosts[index];
Expand Down

0 comments on commit 22313fa

Please sign in to comment.