Fix vote eligibility check logic by correcting timestamp comparison direction.
This commit is contained in:
parent
86a85049b3
commit
e766fd1125
|
|
@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user