Skip to content

Commit 8aa529d

Browse files
authored
cherry pick ef304e3 into v7.47.0 RC (#15820)
1 parent 0782bef commit 8aa529d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/components/UI/AccountSelectorList/AccountSelectorList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { FlatList } from 'react-native-gesture-handler';
1111
import { shallowEqual, useSelector } from 'react-redux';
1212
import { useNavigation } from '@react-navigation/native';
1313
import { KeyringTypes } from '@metamask/keyring-controller';
14+
import { isAddress as isSolanaAddress } from '@solana/addresses';
15+
1416

1517
// External dependencies.
1618
import Cell, {
@@ -237,7 +239,7 @@ const AccountSelectorList = ({
237239
onLongPress({
238240
address,
239241
isAccountRemoveable:
240-
type === KeyringTypes.simple || type === KeyringTypes.snap,
242+
type === KeyringTypes.simple || (type === KeyringTypes.snap && !isSolanaAddress(address)),
241243
isSelected: isSelectedAccount,
242244
index,
243245
});

0 commit comments

Comments
 (0)