on master help sign in
fix: correctly parse funding request values
8ab98a7Matt Condon (shrugs)
src/lib/tank.js+6−1
@@ -115,7 +115,12 @@ async function waitForBalance(
115 resolve();
115 resolve();
116 } else {
116 } else {
117 if (balance !== oldBalance) {
117 if (balance !== oldBalance) {
118+ // TODO: minBalance is a `number` type
119+ // but we want to display ETH, which will never accept a number
120+ // but instead wants string or BN/BigNumber.
121+ // this will be heavily refactored to correctly do BN math, but until
122+ // then we'll manually convert this number to an integer string
118− askForFunding(address, minBalance, balance);
123+ askForFunding(address, minBalance.toFixed(), balance);
119 }
124 }
120 setTimeout(checkForBalance, 13000);
125 setTimeout(checkForBalance, 13000);
121 }
126 }
src/views/Invite/InviteEmail.js+3−2
@@ -486,8 +486,9 @@ export default function InviteEmail() {
486 <Grid.Item full>
486 <Grid.Item full>
487 <Highlighted>
487 <Highlighted>
488 Your ownership address {needFunds.address} needs at least{' '}
488 Your ownership address {needFunds.address} needs at least{' '}
489− {fromWei(needFunds.minBalance)}ETH and currently has{' '}
489+ {fromWei(needFunds.minBalance)} ETH and currently has{' '}
490− {fromWei(needFunds.balance)}.
490+ {fromWei(needFunds.balance)} ETH. Waiting until the account has
491+ enough funds.
491 </Highlighted>
492 </Highlighted>
492 </Grid.Item>
493 </Grid.Item>
493 )}
494 )}