Skip to content

Commit

Permalink
fix: bugfix for select wallet (#10598)
Browse files Browse the repository at this point in the history
* fix: bugfix for select wallet

* fix: hidden switch network when wallet be smart pay

---------

Co-authored-by: guanbinrui <52657989+guanbinrui@users.noreply.github.com>
  • Loading branch information
nuanyang233 and guanbinrui committed Aug 23, 2023
1 parent 174a6cf commit 95d6edc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ const SelectWallet = memo(function SelectWallet() {
fullWidth
onClick={handleConfirm}
disabled={
isVerifyWalletFlow ? !!bindingWallets?.some((x) => isSameAddress(x.identity, selected)) : false
isVerifyWalletFlow
? !!wallets?.some((x) => isSameAddress(x.address, selected) && !!x.owner)
: false
}>
{t('confirm')}
</ActionButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ const WalletSettings = memo(() => {
<AutoLock />
<ChangeCurrency />
<ChangePaymentPassword />
{wallet.owner ? null : <ShowPrivateKey />}
<ChangeNetwork />
{wallet.owner ? null : (
<>
<ShowPrivateKey />
<ChangeNetwork />
</>
)}
</List>
<Box className={classes.bottomAction}>
<ActionButton
Expand Down

0 comments on commit 95d6edc

Please sign in to comment.