Skip to content

Commit

Permalink
Update date-fns from v3 to v4 #724
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Oct 17, 2024
1 parent a5454ce commit 15f6eb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@ngx-translate/http-loader": "8.0.0",
"@popperjs/core": "2.11.8",
"bootstrap": "5.3.3",
"date-fns": "3.6.0",
"date-fns": "4.1.0",
"fp-ts": "2.16.9",
"io-ts": "2.2.21",
"io-ts-types": "0.5.19",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ export class PresenceControlStateService
confirmBackLinkParams?: Params;

private selectedDateSubject$ = new BehaviorSubject(new Date());
selectedDate$ = this.selectedDateSubject$
.asObservable()
.pipe(map(startOfDay), distinctUntilChanged(isEqual));
selectedDate$ = this.selectedDateSubject$.asObservable().pipe(
map((date) => startOfDay(date)),
distinctUntilChanged(isEqual),
);

private viewModeSubject$ = new Subject<PresenceControlViewMode>();
viewMode$ = merge(
Expand Down

0 comments on commit 15f6eb9

Please sign in to comment.