src/app/address/controllers/summary/confirm.js
// return true if same year or cant tell if within 3 months
return true if same year or cant tell if within 3 months
return true if same year or cant tell if within 3 months
isMoreInfoRequired(yearFrom, checkDate) {
    if (checkDate.getFullYear() === yearFrom) {
      return true; 
    }
    const threeMonthsAgo = new Date(
      checkDate.getFullYear(),
      checkDate.getMonth() - 3
    );
    return threeMonthsAgo.getFullYear() <= yearFrom;
  }
isMoreInfoRequired ( yearFrom , checkDate ) { if ( checkDate . getFullYear ( ) === yearFrom ) { return true ; } const threeMonthsAgo = new Date ( checkDate . getFullYear ( ) , checkDate . getMonth ( ) - 3 ) ; return threeMonthsAgo . getFullYear ( ) <= yearFrom ; }
return true if same year or cant tell if within 3 months
return true if same year or cant tell if within 3 months
// constructor requires month // We dont know what month they moved. // If 3monthsAgo is still 2022 and yearFrom = 2021. // Return false // if 3monthsAgo is previous year 2021 and yearFrom = 2020 // Return true