tek-wallet 0.0.400 → 0.0.402
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.
|
@@ -317,12 +317,12 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
317
317
|
console.warn("🚀 ~ data handleSelectContinueTransferExternal:", data);
|
|
318
318
|
(_a = suggestUseTransferInternalDialogRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
319
319
|
setSelectedMethod(SendMethods.TRANSFER_EXTERNAL);
|
|
320
|
-
setRecipientAddress(data === null || data === void 0 ? void 0 : data.address);
|
|
320
|
+
!!(data === null || data === void 0 ? void 0 : data.address) && setRecipientAddress(data === null || data === void 0 ? void 0 : data.address);
|
|
321
321
|
if (onlyChangeAddress.current) {
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
324
|
var tokenSet = (data === null || data === void 0 ? void 0 : data.jetton)
|
|
325
|
-
? findWithdrawToken(data === null || data === void 0 ? void 0 : data.jetton)
|
|
325
|
+
? findWithdrawToken((data === null || data === void 0 ? void 0 : data.jetton) || "")
|
|
326
326
|
: selectedToken;
|
|
327
327
|
if (!tokenSet) {
|
|
328
328
|
gotoStep(WithdrawStep.SELECT_TOKEN);
|
|
@@ -332,8 +332,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
332
332
|
setSelectedNetwork(tokenSet === null || tokenSet === void 0 ? void 0 : tokenSet.network_data);
|
|
333
333
|
gotoStep(WithdrawStep.FORM);
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
!!(data === null || data === void 0 ? void 0 : data.amount) &&
|
|
336
|
+
setAmount(getAmountAfterDecimal((data === null || data === void 0 ? void 0 : data.amount) || 0, (tokenSet === null || tokenSet === void 0 ? void 0 : tokenSet.decimal) || 0));
|
|
337
|
+
!!(data === null || data === void 0 ? void 0 : data.text) && setMemo(data === null || data === void 0 ? void 0 : data.text);
|
|
337
338
|
};
|
|
338
339
|
var handleSelectMethod = function (method) {
|
|
339
340
|
var _a;
|
|
@@ -620,7 +621,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
620
621
|
placeholder: "Enter memo",
|
|
621
622
|
value: memo,
|
|
622
623
|
onChange: handleChangeMemo,
|
|
623
|
-
} })] })), ((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length) && !!amount && ((0, jsx_runtime_1.jsx)(Fees_1.default, { feesData: JSON.stringify(estimateFee), amount: +amount })), estimateReceive !== undefined && !amountError && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Estimate receive" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { ml: "auto" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: estimateReceive }) })] })), (0, jsx_runtime_1.jsx)(
|
|
624
|
+
} })] })), ((_a = estimateFee === null || estimateFee === void 0 ? void 0 : estimateFee.feeDetail) === null || _a === void 0 ? void 0 : _a.length) && !!amount && ((0, jsx_runtime_1.jsx)(Fees_1.default, { feesData: JSON.stringify(estimateFee), amount: +amount })), estimateReceive !== undefined && !amountError && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Estimate receive" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { ml: "auto" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: estimateReceive }) })] })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
625
|
+
color: "#f00",
|
|
626
|
+
}, children: "".concat(isValidatingAddress, " - ").concat(recipientAddressError, " - ").concat(amountError, " - ").concat(recipientAddress, " - ").concat(amount, " - ").concat(selectedToken, " - ").concat(selectedNetwork, " - ").concat(selectedMethod, " - ").concat(sendInfoGet) }), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, onClick: handleSend, status: !!amountError ||
|
|
624
627
|
!!recipientAddressError ||
|
|
625
628
|
!recipientAddress ||
|
|
626
629
|
!amount ||
|