Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Last active September 2, 2019 15:57
Show Gist options
  • Save alexytiger/0328343e853d7f6fcee63ffe6e037b0b to your computer and use it in GitHub Desktop.
Save alexytiger/0328343e853d7f6fcee63ffe6e037b0b to your computer and use it in GitHub Desktop.
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