| Auth on view content

This commit is contained in:
rakhimovkamran committed 2024-10-27 23:29:08 +05:00
1 parent 39fef5cb2a
commit 778db1ce9c
1 file changed
+1 -2
+1 -2
View File
@@ -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",