From 1257a4a8af1a317dc62f6bae528402bca0c76b53 Mon Sep 17 00:00:00 2001 From: Lucas Werey Date: Tue, 24 Dec 2024 12:13:15 +0100 Subject: [PATCH] fix :bug:(llm) qr code scanner crash --- .changeset/curvy-hornets-wink.md | 5 ++++ .../components/Synchronize/ScanQrCode.tsx | 30 ++++++++++--------- 2 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 .changeset/curvy-hornets-wink.md diff --git a/.changeset/curvy-hornets-wink.md b/.changeset/curvy-hornets-wink.md new file mode 100644 index 000000000000..3f490fd78403 --- /dev/null +++ b/.changeset/curvy-hornets-wink.md @@ -0,0 +1,5 @@ +--- +"live-mobile": minor +--- + +fix qr code scanner crash diff --git a/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx b/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx index 7f05c6212de4..cfc450f91216 100644 --- a/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx +++ b/apps/ledger-live-mobile/src/newArch/features/WalletSync/components/Synchronize/ScanQrCode.tsx @@ -74,20 +74,22 @@ const ScanQrCode = ({ onQrCodeScanned }: Props) => { alignItems={"center"} > - {({ permissionGranted }) => ( - - )} + {({ permissionGranted }) => + permissionGranted ? ( + + ) : null + }