Skip to content

Commit

Permalink
Fix code example (#3334)
Browse files Browse the repository at this point in the history
Add parentheses
  • Loading branch information
leoruhland committed Jun 23, 2023
1 parent e7e6708 commit fe82747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class UserComponent implements OnDestroy {
...

constructor() {
this.userSubscription = this.user$.subscribe(aUser: User | null => {
this.userSubscription = this.user$.subscribe((aUser: User | null) => {
//handle user state changes here. Note, that user will be null if there is no currently logged in user.
console.log(aUser);
})
Expand Down

0 comments on commit fe82747

Please sign in to comment.