mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 23:36:39 +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
|
// Check if features are disabled due to licensing/subscription
|
||||||
const hasEnterpriseLicense = build === "enterprise" && isUnlocked();
|
const hasEnterpriseLicense = build === "enterprise" && isUnlocked();
|
||||||
const hasSaasSubscription =
|
const hasSaasSubscription =
|
||||||
build === "saas" && subscription?.isSubscribed();
|
build === "saas" &&
|
||||||
|
subscription?.isSubscribed() &&
|
||||||
|
subscription.isActive();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
hasEnterpriseLicense,
|
hasEnterpriseLicense,
|
||||||
|
|||||||
Reference in New Issue
Block a user