on master help sign in
Merge pull request #302 from urbit/funds-notice-bn

Use toBN for balances in NeedFundsNotice

commit59389871b33ab954c36ff7194f59aed4e2a45617 authorAnthony Arroyo <anthony@tlon.io> dateThu 17 Oct 2019, 09:46 (7 years ago) parent578aec15d8bc60
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 );