Skip to content

Commit fe82747

Browse files
authored
Fix code example (#3334)
Add parentheses
1 parent e7e6708 commit fe82747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/auth.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class UserComponent implements OnDestroy {
7676
...
7777

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

0 commit comments

Comments
 (0)