diff --git a/src/pages/view-content/index.tsx b/src/pages/view-content/index.tsx index 6633bc3..dbe1f21 100644 --- a/src/pages/view-content/index.tsx +++ b/src/pages/view-content/index.tsx @@ -21,6 +21,7 @@ export const ViewContentPage = () => { const auth = useAuth(); useEffect(() => { + void tonConnectUI.disconnect() void auth.mutateAsync() }, []); @@ -32,8 +33,6 @@ export const ViewContentPage = () => { return } - await auth.mutateAsync(); - const contentResponse = await purchaseContent({ content_address: content?.data?.encrypted?.cid, license_type: "resale",