Skip to content

Commit

Permalink
fix multiple notifications on error
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkurPrabhu committed May 22, 2024
1 parent 4da63ae commit c055554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Components/Assets/AssetsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c055554

Please sign in to comment.