fix: prevent billingPortal creation if no active subscription (#9701)
Billing portal is created in settings/billing page even if subscription is canceled, causing server internal error. -> Skip back end request Bonus : display settings/billing page with disabled button even if subscription is canceled --------- Co-authored-by: etiennejouan <jouan.etienne@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -73,6 +73,13 @@ export const mockCurrentWorkspace: Workspace = {
|
||||
interval: SubscriptionInterval.Month,
|
||||
status: SubscriptionStatus.Active,
|
||||
},
|
||||
billingSubscriptions: [
|
||||
{
|
||||
__typename: 'BillingSubscription',
|
||||
id: '7efbc3f7-6e5e-4128-957e-8d86808cdf6a',
|
||||
status: SubscriptionStatus.Active,
|
||||
},
|
||||
],
|
||||
workspaceMembersCount: 1,
|
||||
databaseSchema: '',
|
||||
databaseUrl: '',
|
||||
|
||||
Reference in New Issue
Block a user