Skip to content

Commit

Permalink
Hide guideline checkboxes for vip after once
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Oct 17, 2024
1 parent ee52c58 commit e7888d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/submission/SubmissionChecklist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,9 @@ function getDaysUntilNextConfirmation(): number {
}

function shouldConfirmGuidelines(): boolean {
return Date.now() - Config.config!.lastGuidelinesConfirmation > getDaysUntilNextConfirmation() * 24 * 60 * 60 * 1000;
if (Config.config!.vip && Config.config!.confirmGuidelinesCount === 0) {
return true;
}

return !Config.config!.vip && Date.now() - Config.config!.lastGuidelinesConfirmation > getDaysUntilNextConfirmation() * 24 * 60 * 60 * 1000;
}

0 comments on commit e7888d4

Please sign in to comment.