Skip to content

Commit

Permalink
Merge pull request #265 from EyeSeeTea/fix/start-date-project
Browse files Browse the repository at this point in the history
Set start of day for dataInputPeriod now
  • Loading branch information
adrianq authored Jul 22, 2020
2 parents 4fc6209 + 43557b1 commit 8073e69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/steps/disaggregation/DisaggregationStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const DisaggregationStep: React.FC<StepProps> = ({ project, onChange }) => {
},
},
];
}, [Covid19Column, project]);
}, [Covid19Column, project, sectorId]);

const actions = React.useMemo(() => {
return [
Expand Down
2 changes: 1 addition & 1 deletion src/models/ProjectDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class ProjectDb {
.clone()
.add(1, "month")
.endOf("month");
const targetOpeningDate = moment.min(projectOpeningDate, now);
const targetOpeningDate = moment.min(projectOpeningDate, now).startOf("day");

switch (dataSetType) {
case "target": {
Expand Down

0 comments on commit 8073e69

Please sign in to comment.