Skip to content

Commit

Permalink
do not show add token btn for native token (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Polyakov authored Sep 29, 2022
1 parent 3312a93 commit 0199d73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Bridge/TransferNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { lazyComponent } from '@/router';
import { Components } from '@/consts';
import ethersUtil from '@/utils/ethers-util';
import { isEthereumAddress } from '@/utils';
import { isOutgoingTransaction } from '@/utils/bridge';
import { getter, state, mutation } from '@/store/decorators';
Expand Down Expand Up @@ -69,7 +70,7 @@ export default class TransferNotification extends Mixins(TranslationMixin) {
}
get addTokenBtnVisibility(): boolean {
return !!this.asset && isOutgoingTransaction(this.tx);
return !!this.asset && !isEthereumAddress(this.asset.externalAddress) && isOutgoingTransaction(this.tx);
}
close(): void {
Expand Down

0 comments on commit 0199d73

Please sign in to comment.