tek-wallet 0.0.353 → 0.0.355
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.
|
@@ -425,6 +425,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
425
425
|
// if(validateWalletAddress?.is_current_wallet) {
|
|
426
426
|
// return
|
|
427
427
|
// }
|
|
428
|
+
if (validateWalletAddress === null || validateWalletAddress === void 0 ? void 0 : validateWalletAddress.is_current_wallet) {
|
|
429
|
+
setInfoDialogContent("You can not send to your own wallet");
|
|
430
|
+
return [2 /*return*/];
|
|
431
|
+
}
|
|
428
432
|
if (!!(validateWalletAddress === null || validateWalletAddress === void 0 ? void 0 : validateWalletAddress.valid)) {
|
|
429
433
|
setRecipientAddressError(undefined);
|
|
430
434
|
}
|
|
@@ -449,8 +453,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
449
453
|
});
|
|
450
454
|
}); };
|
|
451
455
|
var handleScanAddressQrCode = function (result) { return __awaiter(void 0, void 0, void 0, function () {
|
|
452
|
-
|
|
456
|
+
var _a;
|
|
457
|
+
return __generator(this, function (_b) {
|
|
453
458
|
onlyChangeAddress.current = true;
|
|
459
|
+
(_a = scannerAddressQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
454
460
|
handleScanAllQrCode(result);
|
|
455
461
|
return [2 /*return*/];
|
|
456
462
|
});
|