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
- return __generator(this, function (_a) {
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
  });
@@ -10,6 +10,7 @@ export interface ValidateWalletAddressData {
10
10
  valid: number;
11
11
  master_wallet_address: null;
12
12
  is_existed: boolean;
13
+ is_current_wallet: boolean;
13
14
  }
14
15
  export interface ValidateWalletAddressBody {
15
16
  address: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.353",
3
+ "version": "0.0.355",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",