Skip to content
Snippets Groups Projects

fix(typo): écogestes + optionnel poll

Merged Hugo NOUTS requested to merge dev into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -16,10 +16,10 @@ export type ContentItems = 'monthlyInfo' | 'monthlyNews' | 'poll' | ''
const Editing: React.FC = () => {
// Fonctional rule :
// Display next month after the 5th of the current month
// Display next month after the 3rd of the current month
const getCurrentNewsletterDate = (): Date => {
let newsletterDate = new Date()
if (newsletterDate.getDate() > 5) {
if (newsletterDate.getDate() >= 3) {
newsletterDate.setMonth(newsletterDate.getMonth() + 1)
}
return newsletterDate
Loading