From d5c6eb6ba800b8acc10e2c4a5adcd584e9dc23f5 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 00000000000..3f490fd7840 --- /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 7f05c6212de..cfc450f9121 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 + }