From 2acf08528ae4f84bc4b315bd30bda88eb5ea4fdf Mon Sep 17 00:00:00 2001 From: Kiril Baskakov Date: Thu, 23 Jan 2025 22:52:19 -0800 Subject: [PATCH] fix: timespans default value --- mobile/src/pages/timespan/newTimespan/newTimespan.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/pages/timespan/newTimespan/newTimespan.tsx b/mobile/src/pages/timespan/newTimespan/newTimespan.tsx index a10ed3c3..93089e17 100644 --- a/mobile/src/pages/timespan/newTimespan/newTimespan.tsx +++ b/mobile/src/pages/timespan/newTimespan/newTimespan.tsx @@ -30,7 +30,7 @@ const NewTimespan: React.FC = () => { const { t } = useTranslation(); const [cookies] = useCookies(); const {orderName, orderYear, orderItem} = useSelector((state: RootState) => state.currentTimespan); - const [timespans, setTimespans] = useState([]); + const [timespans, setTimespans] = useState(undefined); const [timespan, setTimespan] = useState({} as ITimespan); const [backLink, setBackLink] = useState(!!timespan.startedAt);