Skip to content

Commit

Permalink
fix authStoreName
Browse files Browse the repository at this point in the history
  • Loading branch information
frontegg-david committed Aug 13, 2024
1 parent 0477e99 commit 3a4550b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions projects/frontegg-app/src/lib/frontegg-auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ import { Observable } from 'rxjs';
import { Router } from '@angular/router';
import { LoginDirectAction } from '@frontegg/redux-store/auth/LoginState/interfaces';
import { FronteggUserSubscriptionService } from './frontegg-user-subscription.service';
import { map } from 'rxjs/operators';

interface AuthSubStates {
field: Partial<keyof AuthState>;
Expand Down Expand Up @@ -473,8 +472,7 @@ export class FronteggAuthService implements SubjectState<Partial<AuthStateObserv

private dispatchAction(type: string, payload?: any): void {
const store = this.fronteggAppService.fronteggApp.store;
// @ts-ignore
store.dispatch({ type: `${authStoreName}/${type}`, payload });
store.dispatch({ type: `auth/${type}`, payload });
}


Expand Down

0 comments on commit 3a4550b

Please sign in to comment.