Merge pull request #12209 from brave/nw_swap_tofrom_fix

Fix Swap from can be same as swap to
This commit is contained in:
wchen342
2022-02-11 15:25:01 +02:00
committed by GitHub
@@ -1298,7 +1298,9 @@ public class BuySendSwapActivity extends BraveWalletBaseActivity
public void updateBuySendSwapAsset(
String asset, BlockchainToken blockchainToken, boolean buySend) {
if (!buySend && mCurrentBlockchainToken != null
&& mCurrentBlockchainToken.symbol.equals(blockchainToken.symbol))
&& mCurrentBlockchainToken.symbol.equals(blockchainToken.symbol)
|| buySend && mCurrentSwapToBlockchainToken != null
&& mCurrentSwapToBlockchainToken.symbol.equals(blockchainToken.symbol))
return;
TextView assetText = buySend ? mFromAssetText : mToAssetText;