anchor.diff:              label: "Today"
             }],
             label: "or",
  -          onClick: (index, fp) => {
  -            let date;
  -            switch (index) {
  -              case 0:
  -                date = new Date();
  -                break;
  -            }
  -            fp.setDate(date);
  -          }
  +          onClick: onClickButtons
           })
         ]
     }
  
positive.code: $(document).ready(function(){
    window.FLATPICKR_DATE_DEFAULT = {
      dateFormat: Spree.translations.flatpickr_date_format,
      locale: I18n.locale,
  
negative.code:             label: "Now"
            }],
            label: "or",
            onClick: onClickButtons
          })
        ]
      }
  