@passgage/sdk-react-native 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1481,6 +1481,7 @@ var usePassgageQRScanner = (payload) => {
|
|
|
1481
1481
|
);
|
|
1482
1482
|
if (!result.success) {
|
|
1483
1483
|
payload?.onError?.(result);
|
|
1484
|
+
return;
|
|
1484
1485
|
} else {
|
|
1485
1486
|
payload?.onSuccess?.(result.entrance);
|
|
1486
1487
|
}
|
|
@@ -1565,6 +1566,7 @@ function usePassgageNFCScanner(payload) {
|
|
|
1565
1566
|
);
|
|
1566
1567
|
if (!result.success) {
|
|
1567
1568
|
payload?.onError?.({ success: false, message: result.message });
|
|
1569
|
+
return;
|
|
1568
1570
|
}
|
|
1569
1571
|
payload?.onSuccess?.(result.entrance);
|
|
1570
1572
|
stopScanning();
|
package/dist/index.mjs
CHANGED
|
@@ -1451,6 +1451,7 @@ var usePassgageQRScanner = (payload) => {
|
|
|
1451
1451
|
);
|
|
1452
1452
|
if (!result.success) {
|
|
1453
1453
|
payload?.onError?.(result);
|
|
1454
|
+
return;
|
|
1454
1455
|
} else {
|
|
1455
1456
|
payload?.onSuccess?.(result.entrance);
|
|
1456
1457
|
}
|
|
@@ -1535,6 +1536,7 @@ function usePassgageNFCScanner(payload) {
|
|
|
1535
1536
|
);
|
|
1536
1537
|
if (!result.success) {
|
|
1537
1538
|
payload?.onError?.({ success: false, message: result.message });
|
|
1539
|
+
return;
|
|
1538
1540
|
}
|
|
1539
1541
|
payload?.onSuccess?.(result.entrance);
|
|
1540
1542
|
stopScanning();
|