diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-08 08:58:05 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-08 08:58:05 +0800 |
commit | eebf205817d3d812a40158d146110c7868a42bf0 (patch) | |
tree | 2b308694b4801667982fed2d935d4a9ac5f0892f /packages | |
parent | e666bb44c6e15859a1fa6818e778b3fa0b46c2fa (diff) | |
download | dexon-sol-tools-eebf205817d3d812a40158d146110c7868a42bf0.tar dexon-sol-tools-eebf205817d3d812a40158d146110c7868a42bf0.tar.gz dexon-sol-tools-eebf205817d3d812a40158d146110c7868a42bf0.tar.bz2 dexon-sol-tools-eebf205817d3d812a40158d146110c7868a42bf0.tar.lz dexon-sol-tools-eebf205817d3d812a40158d146110c7868a42bf0.tar.xz dexon-sol-tools-eebf205817d3d812a40158d146110c7868a42bf0.tar.zst dexon-sol-tools-eebf205817d3d812a40158d146110c7868a42bf0.zip |
Fix flash message when receiving test ether
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/components/token_balances.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx index 6c3f4748b..894edf0a8 100644 --- a/packages/website/ts/components/token_balances.tsx +++ b/packages/website/ts/components/token_balances.tsx @@ -118,7 +118,8 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala if (nextProps.userEtherBalance !== this.props.userEtherBalance) { if (this.state.isBalanceSpinnerVisible) { const receivedAmount = nextProps.userEtherBalance.minus(this.props.userEtherBalance); - this.props.dispatcher.showFlashMessage(`Received ${receivedAmount.toString(10)} Kovan Ether`); + const networkName = constants.NETWORK_NAME_BY_ID[this.props.networkId]; + this.props.dispatcher.showFlashMessage(`Received ${receivedAmount.toString(10)} ${networkName} Ether`); } this.setState({ isBalanceSpinnerVisible: false, |