free upload support
This commit is contained in:
parent
2274cb4a4a
commit
0b1dc23cc6
|
|
@ -99,6 +99,7 @@ export const PresubmitStep = ({ prevStep }: PresubmitStepProps) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (createContentResponse.data) {
|
if (createContentResponse.data) {
|
||||||
|
if (createContentResponse.data.address != null) {
|
||||||
const transactionResponse = await tonConnectUI.sendTransaction({
|
const transactionResponse = await tonConnectUI.sendTransaction({
|
||||||
validUntil: Math.floor(Date.now() / 1000) + 120,
|
validUntil: Math.floor(Date.now() / 1000) + 120,
|
||||||
messages: [
|
messages: [
|
||||||
|
|
@ -109,13 +110,13 @@ export const PresubmitStep = ({ prevStep }: PresubmitStepProps) => {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
if (transactionResponse.boc) {
|
if (transactionResponse.boc) {
|
||||||
WebApp.close();
|
WebApp.close();
|
||||||
} else {
|
} else {
|
||||||
console.error("Transaction failed:", transactionResponse);
|
console.error("Transaction failed:", transactionResponse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
WebApp.close();
|
WebApp.close();
|
||||||
// @ts-expect-error Type issues
|
// @ts-expect-error Type issues
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue