tek-wallet 0.0.680 → 0.0.681

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.
@@ -122,10 +122,11 @@ exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
122
122
  var _f = (0, react_1.useState)(false), isValidatingAddress = _f[0], setIsValidatingAddress = _f[1];
123
123
  var _g = (0, react_1.useState)(undefined), errorAddress = _g[0], setErrorAddress = _g[1];
124
124
  var _h = (0, react_1.useMemo)(function () {
125
+ var _a, _b, _c, _d, _e, _f, _g;
125
126
  return {
126
- transferDetails: transferData.instructions[0],
127
- amount: transferData.instructions[0].currency_update_info[0].amount,
128
- currencySlug: transferData.instructions[0].currency_update_info[0].currency_slug,
127
+ transferDetails: (_a = transferData.instructions[0]) !== null && _a !== void 0 ? _a : {},
128
+ amount: (_d = (_c = (_b = transferData.instructions[0]) === null || _b === void 0 ? void 0 : _b.currency_update_info[0]) === null || _c === void 0 ? void 0 : _c.amount) !== null && _d !== void 0 ? _d : 0,
129
+ currencySlug: (_g = (_f = (_e = transferData.instructions[0]) === null || _e === void 0 ? void 0 : _e.currency_update_info[0]) === null || _f === void 0 ? void 0 : _f.currency_slug) !== null && _g !== void 0 ? _g : "",
129
130
  };
130
131
  }, [transferData]), transferDetails = _h.transferDetails, amount = _h.amount, currencySlug = _h.currencySlug;
131
132
  var toAddress = transferDetails.master_wallet_address;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.680",
3
+ "version": "0.0.681",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",