Skip to content

Commit

Permalink
refactor: Deprecated subscribe method
Browse files Browse the repository at this point in the history
  • Loading branch information
bzhn committed Nov 4, 2024
1 parent 7bfe54c commit 249a786
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ export class UserLogComponent implements OnInit {

ngOnInit() {
this.retrieveUserLog();
this.habitStatisticService.habitStatistics.subscribe(
() => {
this.habitStatisticService.habitStatistics.subscribe({
next: () => {
this.retrieveUserLog();
},
(error) => {
error: (error) => {
this.hasStatistic = false;
console.log('Error!', error);
}
);
});
}

nowDate() {
Expand Down

0 comments on commit 249a786

Please sign in to comment.