Fix vote eligibility check logic by correcting timestamp comparison direction.

This commit is contained in:
akastijn 2025-10-24 22:22:32 +02:00
parent 86a85049b3
commit e766fd1125

View File

@ -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)
)
}
}