tek-wallet 0.0.354 → 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
  }
@@ -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.354",
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",