tek-wallet 0.0.228 → 0.0.229

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.
@@ -205,7 +205,7 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
205
205
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
206
206
  };
207
207
  (0, react_1.useEffect)(function () {
208
- if (isAuthenticated) {
208
+ if (isAuthenticated && !depositTokens) {
209
209
  updateDepositToken();
210
210
  }
211
211
  }, [isAuthenticated]);
@@ -128,7 +128,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
128
128
  nextStep();
129
129
  };
130
130
  (0, react_1.useEffect)(function () {
131
- if (isAuthenticated) {
131
+ if (isAuthenticated && !withdrawTokens) {
132
132
  console.warn("🚀 ~ updateWithdrawToken ~ isAuthenticated:", isAuthenticated);
133
133
  updateWithdrawToken();
134
134
  }
@@ -112,7 +112,8 @@ function WithdrawProvider(_a) {
112
112
  return [3 /*break*/, 4];
113
113
  case 3:
114
114
  error_1 = _a.sent();
115
- console.error("🚀 ~ getBalance ~ error:", error_1);
115
+ console.error("🚀 ~ getBalance ~ error getWithdrawTokenList:", error_1);
116
+ setWithdrawTokens(undefined);
116
117
  setIsLoadingWithdrawToken(false);
117
118
  return [3 /*break*/, 4];
118
119
  case 4: return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",