Last active
September 2, 2019 15:57
-
-
Save alexytiger/0328343e853d7f6fcee63ffe6e037b0b 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
| 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