Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Created January 10, 2020 03:09
Show Gist options
  • Save alexytiger/8c5bce6dbab65160f73d9fab8d7b1366 to your computer and use it in GitHub Desktop.
Save alexytiger/8c5bce6dbab65160f73d9fab8d7b1366 to your computer and use it in GitHub Desktop.
e-book
showSnackbarOnCreateContract$ = createEffect(() =>
this.actions$.pipe(
ofType(PurchaseContractActions.createPurchaseContractSuccess),
map((payload) => {
const msg: SnackBarInterface = {
message: `New smart product contract has been created successfully: Address: ${payload.product.contractAddress}`,
color: AppearanceColor.Success
};
return SnackBarActions.open({ payload: msg });
})
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment