Skip to content

Commit 482e390

Browse files
committed
poll min age check
1 parent b450e33 commit 482e390

File tree

1 file changed

+1
-1
lines changed
  • lib/features/threads/presentation/thread_feed/widgets/post_poll

1 file changed

+1
-1
lines changed

lib/features/threads/presentation/thread_feed/widgets/post_poll/post_poll.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _PostPollState extends State<PostPoll> {
5555
(userProfileController) => userProfileController.accountAgeDays);
5656
int minAgeDays = meta?.filters?.accountAge ?? 0;
5757
bool hasEnded = poll?.endTime.isBefore(DateTime.now()) ?? false;
58-
bool votingProhibited = hasEnded || minAgeDays >= accountAgeDays;
58+
bool votingProhibited = hasEnded || accountAgeDays < minAgeDays;
5959

6060
//check if user already voted
6161
List<int> userVotedIds = poll?.userVotedIds(username) ?? [];

0 commit comments

Comments
 (0)