File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ export type SubscriptionStatus = 'active' | 'trialing' | 'past_due' | 'deleted';
216
216
type AppData = {
217
217
email : string ;
218
218
subscription_status ?: SubscriptionStatus ;
219
+ subscription_sku ?: SKU ;
219
220
subscription_plan_id ?: number ;
220
221
subscription_expiry ?: number ;
221
222
update_url ?: string ;
@@ -291,7 +292,8 @@ function parseUserData(userJwt: string | null): User {
291
292
292
293
const subscription = {
293
294
status : appData . subscription_status ,
294
- plan : getSKU ( appData . subscription_plan_id ) ,
295
+ plan : appData . subscription_sku
296
+ ?? getSKU ( appData . subscription_plan_id ) ,
295
297
expiry : appData . subscription_expiry ? new Date ( appData . subscription_expiry ) : undefined ,
296
298
updateBillingDetailsUrl : appData . update_url ,
297
299
cancelSubscriptionUrl : appData . cancel_url ,
You can’t perform that action at this time.
0 commit comments