Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed May 7, 2024
1 parent b1c8094 commit bf415d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/utils/planning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1397,10 +1397,10 @@ function getDefaultCoverageDueDate(
): moment.Moment | null {
let coverageTime: moment.Moment = null;

if (eventItem) {
coverageTime = moment(eventItem?.dates?.end);
} else if (planningItem.planning_date) {
coverageTime = moment('' + planningItem.planning_date);
if (planningItem?.event_item == null) {
coverageTime = moment(planningItem?.planning_date || moment());
} else if (eventItem) {
coverageTime = moment(eventItem?.dates?.end || moment());
}

if (!coverageTime) {
Expand Down

0 comments on commit bf415d6

Please sign in to comment.