Skip to content
Snippets Groups Projects
Commit 8edc3e10 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

fix types error

parent 5a7c22d7
No related branches found
No related tags found
1 merge request!60chore(deps): update dependency eslint-plugin-react to v7.33.2
Pipeline #74390 passed
......@@ -53,7 +53,7 @@ const Popups: React.FC = () => {
egl_failure: false,
notification_activated: false,
})
const [previousEndDate, setPreviousEndDate] = useState<string>()
const [previousEndDate, setPreviousEndDate] = useState<string | null>()
const [customPopup, setCustomPopup] = useState<ICustomPopup>({
popupEnabled: false,
title: '',
......@@ -147,7 +147,7 @@ const Popups: React.FC = () => {
setCustomPopup({
...customPopupData,
})
setPreviousEndDate(customPopupData.endDate || undefined)
setPreviousEndDate(customPopupData.endDate ?? undefined)
}
}
setIsLoading(false)
......
......@@ -3,7 +3,7 @@ import { durationType } from './durationOptions.model'
export interface ICustomPopup {
description: string
popupEnabled: boolean
endDate: string
endDate: string | null
title: string
}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment