@@ -17,8 +17,6 @@ import { getTimeEntriesDataSource } from '../../store/entry.selectors';
1717import { DATE_FORMAT } from 'src/environments/environment' ;
1818import { Subscription , Observable } from 'rxjs' ;
1919import { FeatureManagerService } from './../../../shared/feature-toggles/feature-toggle-manager.service' ;
20- import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service' ;
21-
2220
2321type Merged = TechnologyState & ProjectState & ActivityState ;
2422
@@ -46,7 +44,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
4644 private store : Store < Merged > ,
4745 private actionsSubject$ : ActionsSubject ,
4846 private toastrService : ToastrService ,
49- private azureService : AzureAdB2CService ,
5047 private featureManagerService : FeatureManagerService
5148 ) {
5249 this . entryForm = this . formBuilder . group ( {
@@ -158,7 +155,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
158155 }
159156 this . entryForm . patchValue ( { start_date : newHourEntered } ) ;
160157 if ( this . isFeatureToggleActive ) {
161- this . newData . owner_id = this . getOwnerId ( ) ;
162158 this . newData . update_last_entry_if_overlap = true ;
163159 this . store . dispatch ( new entryActions . UpdateEntryRunning ( { ...this . newData , ...this . entryForm . value } ) ) ;
164160 } else {
@@ -167,10 +163,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
167163 this . showTimeInbuttons = false ;
168164 }
169165
170- getOwnerId ( ) {
171- return this . azureService . getUserId ( ) ;
172- }
173-
174166 private getLastEntry ( ) {
175167 const lastEntry$ = this . store . pipe ( select ( getTimeEntriesDataSource ) ) ;
176168 lastEntry$ . subscribe ( ( entry ) => {
0 commit comments