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);