Skip to content

Commit 0dd547a

Browse files
committed
revert to use policy
1 parent 02f9bfe commit 0dd547a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/RestrictedAction/Workspace/WorkspaceRestrictedActionPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ function WorkspaceRestrictedActionPage({
6666
if (isLoadingSubscriptionData !== false) {
6767
return;
6868
}
69-
if (!shouldRestrictUserBillableActions(policyID, ownerBillingGracePeriodEnd, userBillingGracePeriods, amountOwed, session?.accountID)) {
69+
if (!shouldRestrictUserBillableActions(policy, ownerBillingGracePeriodEnd, userBillingGracePeriods, amountOwed, session?.accountID)) {
7070
Navigation.goBack();
7171
}
72-
}, [policyID, isLoadingSubscriptionData, userBillingGracePeriods, ownerBillingGracePeriodEnd, amountOwed, session?.accountID]);
72+
}, [policy, isLoadingSubscriptionData, userBillingGracePeriods, ownerBillingGracePeriodEnd, amountOwed, session?.accountID]);
7373

7474
// Show a loading indicator while waiting for fresh billing data from the server,
7575
// instead of flashing the restriction UI which may no longer apply.

0 commit comments

Comments
 (0)