Skip to content

Commit

Permalink
Merge branch 'develop' into update-mobile-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks authored May 4, 2020
2 parents 7846209 + a5c3bf0 commit 5e76905
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/components/Nav/Main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,16 +538,17 @@ class Main extends PureComponent {
let hasSAI = false;
Object.keys(this.props.allTokens).forEach(account => {
const tokens = this.props.allTokens[account].mainnet;
tokens.forEach(token => {
if (token.address.toLowerCase() === AppConstants.SAI_ADDRESS.toLowerCase()) {
if (this.props.contractBalances[AppConstants.SAI_ADDRESS]) {
const balance = this.props.contractBalances[AppConstants.SAI_ADDRESS];
if (!balance.isZero()) {
hasSAI = true;
tokens &&
tokens.forEach(token => {
if (token.address.toLowerCase() === AppConstants.SAI_ADDRESS.toLowerCase()) {
if (this.props.contractBalances[AppConstants.SAI_ADDRESS]) {
const balance = this.props.contractBalances[AppConstants.SAI_ADDRESS];
if (!balance.isZero()) {
hasSAI = true;
}
}
}
}
});
});
});

if (hasSAI) {
Expand Down

0 comments on commit 5e76905

Please sign in to comment.