| Auth on view content
This commit is contained in:
parent
39fef5cb2a
commit
778db1ce9c
|
|
@ -21,6 +21,7 @@ export const ViewContentPage = () => {
|
||||||
const auth = useAuth();
|
const auth = useAuth();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
void tonConnectUI.disconnect()
|
||||||
void auth.mutateAsync()
|
void auth.mutateAsync()
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
@ -32,8 +33,6 @@ export const ViewContentPage = () => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
await auth.mutateAsync();
|
|
||||||
|
|
||||||
const contentResponse = await purchaseContent({
|
const contentResponse = await purchaseContent({
|
||||||
content_address: content?.data?.encrypted?.cid,
|
content_address: content?.data?.encrypted?.cid,
|
||||||
license_type: "resale",
|
license_type: "resale",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue