File tree Expand file tree Collapse file tree 5 files changed +3
-6
lines changed Expand file tree Collapse file tree 5 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ export class UserDataGuard implements CanActivateChild {
2020 if ( ! user ) {
2121 this . store . dispatch ( getCurrentUserAction ( ) ) ;
2222 }
23- console . log ( user ) ;
2423 return true ;
2524 } )
2625 ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ export class AuthService {
3434 }
3535
3636 public getCurrentUser ( ) : Observable < User > {
37- console . log ( 'getCurrentUser' ) ;
3837 return this . http . get < User > ( `${ environment . apiUrl } /user/me` ) ;
3938 }
4039
Original file line number Diff line number Diff line change @@ -70,10 +70,7 @@ export class AuthEffects {
7070 this . actions$ . pipe (
7171 ofType ( AuthActions . getCurrentUserAction ) ,
7272 switchMap ( ( ) => this . authService . getCurrentUser ( ) . pipe (
73- map ( ( { data } : any ) => {
74- console . log ( data ) ;
75- return AuthActions . fetchCurrentUserSuccessAction ( { user : data . user } )
76- } ) ,
73+ map ( ( { data } : any ) => AuthActions . fetchCurrentUserSuccessAction ( { user : data . user } ) ) ,
7774 catchError ( ( ) => EMPTY )
7875 ) )
7976 )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export const authReducer = createReducer(
2020 AuthActions . authenticateAction ,
2121 AuthActions . forgotPasswordAction ,
2222 AuthActions . resetPasswordAction ,
23+ AuthActions . logoutAction ,
2324 ( state : AuthState ) : AuthState => {
2425 return {
2526 ...state ,
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export interface User {
2121 email : string ;
2222 phoneNumber : string ;
2323 accountType : string ;
24+ profilePhotoUrl : string ;
2425 timezone : string ;
2526 emailVerifiedAt : string ;
2627 roles : string [ ] ;
You can’t perform that action at this time.
0 commit comments