From 6d35eb78224a2c4b0d920c7e3eda34dcc69eb239 Mon Sep 17 00:00:00 2001 From: Omridan159 Date: Tue, 7 May 2024 17:31:00 +0300 Subject: [PATCH] fix: deeplink invalid error on privateKey import via qr --- .../DeeplinkManager/ParseManager/parseDeeplink.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/core/DeeplinkManager/ParseManager/parseDeeplink.ts b/app/core/DeeplinkManager/ParseManager/parseDeeplink.ts index 5192dc148f6..4c799701503 100644 --- a/app/core/DeeplinkManager/ParseManager/parseDeeplink.ts +++ b/app/core/DeeplinkManager/ParseManager/parseDeeplink.ts @@ -92,12 +92,13 @@ function parseDeeplink({ return true; } catch (error) { - Logger.error( - error as Error, - 'DeepLinkManager:parse error parsing deeplink', - ); + const isPrivateKey = url.length === 64; + if (error && !isPrivateKey) { + Logger.error( + error as Error, + 'DeepLinkManager:parse error parsing deeplink', + ); - if (error) { Alert.alert(strings('deeplink.invalid'), `Invalid URL: ${url}`); }