download allowed if purchase

This commit is contained in:
2026-02-25 12:06:08 +01:00
parent 6d50d18d56
commit 73651a8716
4 changed files with 31 additions and 4 deletions
+5
View File
@@ -450,6 +450,10 @@ export default ({ children }) => {
return hasPremiumLevel
}, [currentUserDoc])
const hasPurchased = useMemo(() => {
return currentUserDoc?.hasPurchased === true
}, [currentUserDoc])
return (
<UserDataContext.Provider
value={{
@@ -489,6 +493,7 @@ export default ({ children }) => {
videos,
hasActiveSubscription,
hasPurchased,
}}
>
{children}