Skip to content

Commit 498639b

Browse files
committed
fix: TT-117 two-entries-in-progress-bug
1 parent 22d7a5c commit 498639b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
107107
.subscribe(() => {
108108
this.cleanForm();
109109
});
110+
110111
}
111112

112113
onClearedComponent(event) {
@@ -253,6 +254,6 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
253254
end_hour: formatDate(get(this.entryToEdit, 'start_date', '00:00'), 'HH:mm', 'en'),
254255
});
255256
}
256-
this.shouldRestartEntry = !this.entryToEdit?.running && this.goingToWorkOnThis;
257+
this.shouldRestartEntry = this.entryToEdit?.running && this.goingToWorkOnThis;
257258
}
258259
}

0 commit comments

Comments
 (0)