diff --git a/src/components/Popups/Popups.tsx b/src/components/Popups/Popups.tsx index 4fff30d9c909ec374451acd2033a468d5271c7a3..426ee34f716d57d021773ccddfbf807b255b633c 100644 --- a/src/components/Popups/Popups.tsx +++ b/src/components/Popups/Popups.tsx @@ -154,7 +154,9 @@ const Popups: React.FC = () => { endDate: customPopup.endDate, popupEnabled: isEnabled, }) - setPreviousEndDate(previousPopup.endDate || undefined) + setPreviousEndDate( + isOutdated ? customPopup.endDate : previousPopup.endDate + ) } } setIsLoading(false)