Commit d63a73ae authored by Kenny Tran's avatar Kenny Tran Committed by Chi Kei Chan

Use decimals instead of label (#152)

parent 2ba6ee54
......@@ -248,10 +248,10 @@ class AddLiquidity extends Component {
return false;
}
const { value: tokenValue } = selectors().getBalance(fromToken[token], token);
const { value: tokenValue, decimals } = selectors().getBalance(fromToken[token], token);
const { value: ethValue } = selectors().getBalance(fromToken[token], eth);
return tokenValue.isZero() && ethValue.isZero();
return tokenValue.isZero() && ethValue.isZero() && decimals !== 0;
}
getExchangeRate() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment