Skip to content

Commit 5f8336f

Browse files
committed
fix: ioet#397 remove dead code
1 parent 4ea7a90 commit 5f8336f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/modules/time-clock/services/entry.service.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ import * as moment from 'moment';
1010
describe('EntryService', () => {
1111
let service: EntryService;
1212
let httpMock: HttpTestingController;
13-
let datePipe: DatePipe;
1413

1514
beforeEach(() => {
1615
TestBed.configureTestingModule({imports: [HttpClientTestingModule], providers: [DatePipe]});
1716
service = TestBed.inject(EntryService);
1817
httpMock = TestBed.inject(HttpTestingController);
19-
datePipe = TestBed.inject(DatePipe);
2018
service.baseUrl = 'time-entries';
2119
});
2220

src/app/modules/time-clock/store/entry.selectors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export const getCreateError = createSelector(getEntryState, (state: EntryState)
1717
});
1818

1919
export const getUpdateError = createSelector(getEntryState, (state: EntryState) => {
20-
return state.updateError;
20+
if (state) {
21+
return state.updateError;
22+
}
2123
});
2224
export const getStatusMessage = createSelector(getEntryState, (state: EntryState) => state.message);
2325

0 commit comments

Comments
 (0)