We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ef304e3
1 parent 0782bef commit 8aa529dCopy full SHA for 8aa529d
1 file changed
app/components/UI/AccountSelectorList/AccountSelectorList.tsx
@@ -11,6 +11,8 @@ import { FlatList } from 'react-native-gesture-handler';
11
import { shallowEqual, useSelector } from 'react-redux';
12
import { useNavigation } from '@react-navigation/native';
13
import { KeyringTypes } from '@metamask/keyring-controller';
14
+import { isAddress as isSolanaAddress } from '@solana/addresses';
15
+
16
17
// External dependencies.
18
import Cell, {
@@ -237,7 +239,7 @@ const AccountSelectorList = ({
237
239
onLongPress({
238
240
address,
241
isAccountRemoveable:
- type === KeyringTypes.simple || type === KeyringTypes.snap,
242
+ type === KeyringTypes.simple || (type === KeyringTypes.snap && !isSolanaAddress(address)),
243
isSelected: isSelectedAccount,
244
index,
245
});
0 commit comments