mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 10:52:40 +08:00
@@ -53,6 +53,10 @@ export const Component = () => {
|
||||
: !!subscriptionService.subscription.pro$.value;
|
||||
if (!subscribed) {
|
||||
setMessage('Creating checkout...');
|
||||
mixpanel.track('PlanUpgradeStarted', {
|
||||
type: plan,
|
||||
category: recurring,
|
||||
});
|
||||
try {
|
||||
const checkout = await subscriptionService.createCheckoutSession({
|
||||
idempotencyKey,
|
||||
|
||||
Reference in New Issue
Block a user