tek-wallet 0.0.401 → 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;
|