Skip to content

Commit face70b

Browse files
kevinjlopeSandro Castillo
authored andcommitted
fix: TT-258 refactor code based on PR reviews
1 parent 5a716de commit face70b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/modules/time-entries/pages/time-entries.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
122122
this.store.pipe(select(getTimeEntriesDataSource)).subscribe(ds => {
123123
const dataToUse = ds.data.find(item => item.project_id === event.projectId);
124124
if (dataToUse && this.isNewEntry()) {
125-
const startDate = new Date(new Date().setHours(0, 0, 0, 0));
125+
const endDate = new Date(new Date().setHours(0, 0, 0, 0));
126126
const entry = {
127127
description: dataToUse.description ? dataToUse.description : '',
128128
technologies: dataToUse.technologies ? dataToUse.technologies : [],
129129
uri: dataToUse.uri ? dataToUse.uri : '',
130130
activity_id: dataToUse.activity_id,
131131
project_id: dataToUse.project_id,
132132
start_date: new Date(),
133-
end_date: startDate
133+
end_date: endDate
134134
};
135135
this.entry = entry;
136136
}

0 commit comments

Comments
 (0)