Skip to content

fix any type on auth effect #9

Open
@mckenziearts

Description

@mckenziearts

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)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions