tek-wallet 0.0.462 → 0.0.463
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.
|
@@ -282,7 +282,7 @@ var ReceiveFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
282
282
|
if (isAuthenticated && !receiveInternalTokens) {
|
|
283
283
|
updateReceiveInternalToken();
|
|
284
284
|
}
|
|
285
|
-
}, [isAuthenticated]);
|
|
285
|
+
}, [isAuthenticated, receiveExternalTokens, receiveInternalTokens]);
|
|
286
286
|
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: handleOnClose, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { overrideHeader: (0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: {
|
|
287
287
|
width: "100%",
|
|
288
288
|
display: "flex",
|
|
@@ -601,7 +601,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
601
601
|
if (isAuthenticated && !sendInternalTokens) {
|
|
602
602
|
updateSendInternalToken();
|
|
603
603
|
}
|
|
604
|
-
}, [isAuthenticated]);
|
|
604
|
+
}, [isAuthenticated, withdrawTokens, sendInternalTokens]);
|
|
605
605
|
(0, react_1.useEffect)(function () {
|
|
606
606
|
validateAmount();
|
|
607
607
|
}, [validateAmount]);
|
|
@@ -119,8 +119,10 @@ function LockTokensProvider(_a) {
|
|
|
119
119
|
});
|
|
120
120
|
}); }, [isAuthenticated, isLoadingLockToken]);
|
|
121
121
|
(0, react_1.useEffect)(function () {
|
|
122
|
+
if (!!lockTokens)
|
|
123
|
+
return;
|
|
122
124
|
updateLockToken();
|
|
123
|
-
}, [
|
|
125
|
+
}, [isAuthenticated, lockTokens]);
|
|
124
126
|
return ((0, jsx_runtime_1.jsx)(exports.LockTokensContext.Provider, { value: {
|
|
125
127
|
isLoadingLockToken: isLoadingLockToken,
|
|
126
128
|
lockTokens: lockTokens,
|