tek-wallet 0.0.310 → 0.0.311

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.
@@ -109,7 +109,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
109
109
  var isAuthenticated = (0, useWalletData_1.default)().isAuthenticated;
110
110
  var _d = (0, useWithdrawData_1.default)(), withdrawTokens = _d.withdrawTokens, updateWithdrawToken = _d.updateWithdrawToken;
111
111
  var _e = (0, react_1.useState)(), infoDialogContent = _e[0], setInfoDialogContent = _e[1];
112
- var _f = (0, react_1.useState)(undefined), amount = _f[0], setAmount = _f[1];
112
+ var _f = (0, react_1.useState)(""), amount = _f[0], setAmount = _f[1];
113
113
  var _g = (0, react_1.useState)(undefined), memo = _g[0], setMemo = _g[1];
114
114
  var _h = (0, react_1.useState)(undefined), recipientAddress = _h[0], setRecipientAddress = _h[1];
115
115
  var scannerAllQrCodeRef = (0, react_1.useRef)(null);
@@ -309,7 +309,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
309
309
  }
310
310
  setSelectedMethod(SendMethods.TRANSFER_INTERNAL);
311
311
  setRecipientAddress(recipientAddressInternal);
312
- !!(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) && setAmount(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount);
312
+ setAmount((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) || "");
313
313
  };
314
314
  var handleSelectContinueTransferExternal = function () {
315
315
  var _a;
@@ -325,7 +325,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
325
325
  }
326
326
  setSelectedMethod(SendMethods.TRANSFER_EXTERNAL);
327
327
  setRecipientAddress(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.address);
328
- !!(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) && setAmount(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount);
328
+ setAmount((sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.amount) || "");
329
329
  setMemo(sendInfoGet === null || sendInfoGet === void 0 ? void 0 : sendInfoGet.text);
330
330
  };
331
331
  (0, react_1.useEffect)(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.310",
3
+ "version": "0.0.311",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",