diff --git a/src/components/Action/ActionList/ActionList.tsx b/src/components/Action/ActionList/ActionList.tsx index b400d9d86e1e9bb038eb4d538b3393af85fd3f60..0b35b952d93524d2e2ed610aa5cc8f6ab820e89c 100644 --- a/src/components/Action/ActionList/ActionList.tsx +++ b/src/components/Action/ActionList/ActionList.tsx @@ -57,6 +57,8 @@ const ActionList = ({ </div> ) } + + return null } export default ActionList diff --git a/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx b/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx index ea80ef06b19545374b616c440a3a889c363144e7..796d8ca027cc72ddf5353872d80277e7357256eb 100644 --- a/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx +++ b/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx @@ -138,7 +138,7 @@ const ProfileTypeFormDateSelection = ({ className="month" defaultValue={selectedMonth.value} value={selectedMonth.value} - onChange={e => handleSelectMonth(e.target.value)} + onChange={e => handleSelectMonth(e.target.value as string)} > {renderMonths.map(month => ( <MenuItem @@ -157,7 +157,7 @@ const ProfileTypeFormDateSelection = ({ className="year" defaultValue={selectedYear} value={selectedYear} - onChange={e => handleSelectYear(e.target.value)} + onChange={e => handleSelectYear(e.target.value as string)} > {selectYears.map(year => ( <MenuItem value={year} key={year} className="date-option"> diff --git a/src/store/profile/profile.slice.ts b/src/store/profile/profile.slice.ts index c2d5c3a5c3539b51bef2219bbfeda08974125b1c..876c44ab3b453e0a3307c40086c2f3cdfe9476fc 100644 --- a/src/store/profile/profile.slice.ts +++ b/src/store/profile/profile.slice.ts @@ -32,6 +32,7 @@ const initialState: Profile = { }), haveSeenLastAnalysis: true, sendAnalysisNotification: true, + isAnalysisReminderEnabled: false, sendConsumptionAlert: false, waterDailyConsumptionLimit: 0, mailToken: '', diff --git a/tests/__mocks__/store/profile.state.mock.ts b/tests/__mocks__/store/profile.state.mock.ts index cb896d683d30eddebab0b43fabca149d4a03d035..0f030bbb68454713f8d6fed13657f6fcf923313c 100644 --- a/tests/__mocks__/store/profile.state.mock.ts +++ b/tests/__mocks__/store/profile.state.mock.ts @@ -24,6 +24,7 @@ export const mockProfileState: Profile = { zone: 'utc', }), haveSeenLastAnalysis: true, + isAnalysisReminderEnabled: false, sendConsumptionAlert: false, waterDailyConsumptionLimit: 0, sendAnalysisNotification: true,