tek-wallet 0.0.782 → 0.0.783
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.
|
@@ -124,7 +124,7 @@ var QrCodeReader = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
124
124
|
}, []);
|
|
125
125
|
var theme = (0, providers_1.useTheme)();
|
|
126
126
|
var _d = (0, providers_1.useWalletSetup)(), topOffset = _d.topOffset, overrideQRScanMethod = _d.overrideQRScanMethod;
|
|
127
|
-
if (overrideQRScanMethod) {
|
|
127
|
+
if (!!overrideQRScanMethod) {
|
|
128
128
|
var handleOverrideQRScanMethod = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
129
|
var result, fakeIDetectedBarcode, error_1;
|
|
130
130
|
return __generator(this, function (_a) {
|
|
@@ -134,6 +134,10 @@ var QrCodeReader = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
134
134
|
return [4 /*yield*/, overrideQRScanMethod()];
|
|
135
135
|
case 1:
|
|
136
136
|
result = _a.sent();
|
|
137
|
+
if (!result) {
|
|
138
|
+
console.warn("🚀 ~ handleOverrideQRScanMethod ~ result:", result);
|
|
139
|
+
return [2 /*return*/];
|
|
140
|
+
}
|
|
137
141
|
fakeIDetectedBarcode = {
|
|
138
142
|
rawValue: result,
|
|
139
143
|
format: "QR_CODE",
|
package/dist/index.css
CHANGED