diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountStateViewModel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountStateViewModel.kt index 8df699705..0c9538c81 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountStateViewModel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/AccountStateViewModel.kt @@ -109,7 +109,12 @@ class AccountStateViewModel : ViewModel() { is Nip19Bech32.NEmbed -> null is Nip19Bech32.NRelay -> null is Nip19Bech32.NAddress -> null - else -> null + else -> + try { + if (loginWithExternalSigner) Hex.decode(key) else null + } catch (e: Exception) { + null + } } if (loginWithExternalSigner && pubKeyParsed == null) {