Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: TT-2017 Remove blank lines
  • Loading branch information
VanessaIniguezG committed Apr 26, 2021
commit a90d69b471168a1050201b0f59a374cc8f6ad7f2
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
private actionsSubject$: ActionsSubject,
private toastrService: ToastrService,
private featureToggleGeneralService: FeatureToggleGeneralService,
private azureAdB2CService: AzureAdB2CService
) {
this.entryForm = this.formBuilder.group({
description: '',
Expand Down Expand Up @@ -159,6 +160,7 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
this.entryForm.patchValue({ start_date: newHourEntered });
if (this.isFeatureToggleActive) {
this.newData.update_last_entry_if_overlap = true;
this.newData.owner_id = this.azureAdB2CService.getUserId();
this.store.dispatch(new entryActions.UpdateEntryRunning({ ...this.newData, ...this.entryForm.value }));
} else {
this.store.dispatch(new entryActions.UpdateCurrentOrLastEntry({ ...this.newData, ...this.entryForm.value }));
Expand Down