angular-admin-panel icon indicating copy to clipboard operation
angular-admin-panel copied to clipboard

fix any type on auth effect

Open mckenziearts opened this issue 3 years ago • 0 comments

On getCurrentUserEffect function in the auth.effects.ts file the are a type any when response is successfull. Replace with the correct type of the response

this.authService.getCurrentUser().pipe(
  map(({ data }: any) =>
    AuthActions.fetchCurrentUserSuccessAction({ user: data.user })
  ),
  catchError(() => EMPTY)
)

mckenziearts avatar Oct 28 '22 06:10 mckenziearts