Skip to content

Commit

Permalink
auto login check fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrawat1 committed Apr 16, 2018
1 parent 77f3edd commit 6c1798c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EffectsModule } from '@ngrx/effects';
import { environment } from './../environments/environment.prod';
import { environment } from './../environments/environment';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
Expand Down
1 change: 0 additions & 1 deletion src/app/auth/effects/auth.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class AuthenticationEffects {
private authActions: AuthActions
) { }

// tslint:disable-next-line:member-ordering
@Effect()
Authorized$: Observable<Action> = this.actions$
.ofType(AuthActions.AUTHORIZE)
Expand Down
2 changes: 1 addition & 1 deletion src/app/auth/reducers/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AppState } from './../../interfaces';
import { createSelector } from 'reselect';
import { AuthState } from './auth.state';

// Base product state function
// Base state function
function getAuthState(state: AppState): AuthState {
return state.auth;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function httpInterceptor(
imports: [
// Were not working on modules sice update to rc-5
// TO BE moved to respective modules.
EffectsModule.forRoot([
EffectsModule.forFeature([
AuthenticationEffects,
ProductEffects,
CheckoutEffects,
Expand Down
4 changes: 2 additions & 2 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

export const environment = {
production: false,
// API_ENDPOINT: 'http://localhost:3000/',
API_ENDPOINT: 'https://angularspree-new.herokuapp.com/',
API_ENDPOINT: 'http://localhost:3000/',
// API_ENDPOINT: 'https://angularspree-new.herokuapp.com/',
AppName: 'AngularSpree'
};

0 comments on commit 6c1798c

Please sign in to comment.