Created
March 6, 2019 01:50
-
-
Save alexytiger/aad08125ee0a88e45b4b482c21ba7482 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Effect() | |
GetAttack$: Observable<Action> = this.actions$.pipe( | |
ofType(fromAction.ActionTypes.GET_ATTACK), | |
switchMap(() => this.ethSrv.getAttack().pipe( | |
map((name: string) => new fromAction.GetAttackSuccess(name)), | |
catchError(err => of(new fromAction.EthError(err))) | |
)), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment