From e766fd11250634f6cb24c850a0ea66f6dd9a5c50 Mon Sep 17 00:00:00 2001 From: akastijn Date: Fri, 24 Oct 2025 22:22:32 +0200 Subject: [PATCH] Fix vote eligibility check logic by correcting timestamp comparison direction. --- frontend/src/app/pages/vote/vote.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/pages/vote/vote.component.ts b/frontend/src/app/pages/vote/vote.component.ts index 4452f8d..608aa69 100644 --- a/frontend/src/app/pages/vote/vote.component.ts +++ b/frontend/src/app/pages/vote/vote.component.ts @@ -96,7 +96,7 @@ export class VoteComponent implements OnInit, OnDestroy { const now: Date = new Date(); return ( this.voteStats.allVoteInfo.some(voteInfo => voteInfo.siteName === voteSite - && voteInfo.lastVoteTimestamp - now.getTime() < 86400000) + && voteInfo.lastVoteTimestamp - now.getTime() > 86400000) ) } }