From 778db1ce9ce7eeca37b03dfa3f95d8d50ed560d7 Mon Sep 17 00:00:00 2001 From: rakhimovkamran Date: Sun, 27 Oct 2024 23:29:08 +0500 Subject: [PATCH] | Auth on view content --- src/pages/view-content/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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",