mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-02 08:09:10 +00:00
♻️ Also check for active subscription in paid status hook
This commit is contained in:
@@ -9,7 +9,9 @@ export function usePaidStatus() {
|
||||
// Check if features are disabled due to licensing/subscription
|
||||
const hasEnterpriseLicense = build === "enterprise" && isUnlocked();
|
||||
const hasSaasSubscription =
|
||||
build === "saas" && subscription?.isSubscribed();
|
||||
build === "saas" &&
|
||||
subscription?.isSubscribed() &&
|
||||
subscription.isActive();
|
||||
|
||||
return {
|
||||
hasEnterpriseLicense,
|
||||
|
||||
Reference in New Issue
Block a user