Skip to content
Merged
Show file tree
Hide file tree
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: #397 remove dead code
  • Loading branch information
enriquezrene committed Jul 22, 2020
commit 5f8336fce23f378819a716c636d37b882dd7b2a8
2 changes: 0 additions & 2 deletions src/app/modules/time-clock/services/entry.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import * as moment from 'moment';
describe('EntryService', () => {
let service: EntryService;
let httpMock: HttpTestingController;
let datePipe: DatePipe;

beforeEach(() => {
TestBed.configureTestingModule({imports: [HttpClientTestingModule], providers: [DatePipe]});
service = TestBed.inject(EntryService);
httpMock = TestBed.inject(HttpTestingController);
datePipe = TestBed.inject(DatePipe);
service.baseUrl = 'time-entries';
});

Expand Down
4 changes: 3 additions & 1 deletion src/app/modules/time-clock/store/entry.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const getCreateError = createSelector(getEntryState, (state: EntryState)
});

export const getUpdateError = createSelector(getEntryState, (state: EntryState) => {
return state.updateError;
if (state) {
return state.updateError;
}
});
export const getStatusMessage = createSelector(getEntryState, (state: EntryState) => state.message);

Expand Down