From c055554d40575a38e249a51f8c13a00bb35edae2 Mon Sep 17 00:00:00 2001 From: ankur prabhu Date: Wed, 22 May 2024 19:36:27 +0530 Subject: [PATCH] fix multiple notifications on error --- src/Components/Assets/AssetsList.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/Assets/AssetsList.tsx b/src/Components/Assets/AssetsList.tsx index 0d81a740fa4..7f99e930ba0 100644 --- a/src/Components/Assets/AssetsList.tsx +++ b/src/Components/Assets/AssetsList.tsx @@ -169,7 +169,10 @@ const AssetsList = () => { onResult={async (text) => { if (text) { const assetId = await getAssetIdFromQR(text); - checkValidAssetId(assetId ?? text); + + if (assetId !== undefined) { + checkValidAssetId(assetId); + } } }} onError={(e) => {