edit default license type

This commit is contained in:
user 2024-08-21 23:47:42 +03:00
parent c5c36cb078
commit 0ecc2b4a3c
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export const ViewContentPage = () => {
const contentResponse = await purchaseContent({ const contentResponse = await purchaseContent({
content_address: content?.data?.encrypted?.cid, content_address: content?.data?.encrypted?.cid,
license_type: "listen", license_type: "resale",
}); });
const transactionResponse = await tonConnectUI.sendTransaction({ const transactionResponse = await tonConnectUI.sendTransaction({
@ -91,7 +91,7 @@ export const ViewContentPage = () => {
<Button <Button
onClick={handleBuyContent} onClick={handleBuyContent}
className={"mb-4 mt-[30px] h-[48px]"} className={"mb-4 mt-[30px] h-[48px]"}
label={`Купить за ${fromNanoTON(content?.data?.encrypted?.license?.listen?.price)} ТОН`} label={`Купить за ${fromNanoTON(content?.data?.encrypted?.license?.resale?.price)} ТОН`}
includeArrows={true} includeArrows={true}
/> />
</main> </main>