Fix lint errors related to eslint-config-scratch update

This commit is contained in:
Karishma Chadha 2021-02-11 20:02:08 -05:00
parent faa6a604ed
commit ca392e6d5b
2 changed files with 2 additions and 2 deletions

View file

@ -448,7 +448,7 @@ class DemographicsStep extends React.Component {
}));
}
getYearOptions () {
return Array.apply(null, Array(100)).map((v, id) => {
return Array(...Array(100)).map((v, id) => {
const year = (new Date().getFullYear() - (id + this.props.birthOffset)).toString();
return {value: year, label: year};
});

View file

@ -6,7 +6,7 @@ require('./stepnavigation.scss');
const StepNavigation = props => (
<ul className={classNames('step-navigation', props.className)}>
{Array.apply(null, Array(props.steps)).map((v, step) => (
{Array(...Array(props.steps)).map((v, step) => (
<li
className={classNames({
active: step < props.active,