Skip to content

Commit

Permalink
Merge pull request #1026 from 5sControl/fix/1016-fix-my-tasks-bugs
Browse files Browse the repository at this point in the history
fix: timespans default value
  • Loading branch information
SergBily authored Jan 24, 2025
2 parents 1e218bd + 2acf085 commit c60b758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/src/pages/timespan/newTimespan/newTimespan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ITimespan[]>([]);
const [timespans, setTimespans] = useState<ITimespan[] | undefined>(undefined);
const [timespan, setTimespan] = useState<ITimespan>({} as ITimespan);
const [backLink, setBackLink] = useState(!!timespan.startedAt);

Expand Down

0 comments on commit c60b758

Please sign in to comment.