on master help sign in
Use toBN for balances in NeedFundsNotice
commit5d8bc60d996efb5664ea4319a3ce92dbd7e738d1 authorFang <Fang-@users.noreply.github.com> dateWed 16 Oct 2019, 19:15 (7 years ago) parent7502d29
1 file changed+4−4
src/components/NeedFundsNotice.js+4−4
src/components/NeedFundsNotice.js+4−4
@@ -1,5 +1,5 @@
11import React from 'react';
2−import { fromWei } from 'web3-utils';
2+import { fromWei, toBN } from 'web3-utils';
33
44import Highlighted from './Highlighted';
55import CopiableAddress from './CopiableAddress';
@@ -16,9 +16,9 @@ export default function NeedFundsNotice({
1616 <WarningBox {...rest}>
1717 <Highlighted warning>
1818 Your ownership address <CopiableAddress>{address}</CopiableAddress>{' '}
19− needs at least {fromWei(minBalance)} ETH and currently has{' '}
20− {fromWei(balance)} ETH. The transaction will automatically resume once
21− enough ETH is available. Waiting... <Blinky />
19+ needs at least {fromWei(toBN(minBalance))} ETH and currently has{' '}
20+ {fromWei(toBN(balance))} ETH. The transaction will automatically resume
21+ once enough ETH is available. Waiting... <Blinky />
2222 </Highlighted>
2323 </WarningBox>
2424 );