perf: memo GridCard, fuse save fns, fix slash tab active color
This commit is contained in:
@@ -45,13 +45,13 @@ export async function syncSubscriptionFromStripe(
|
||||
const status = mapStripeStatus(subscription.status);
|
||||
|
||||
const currentPeriodStartTimestamp =
|
||||
subscription.current_period_start ??
|
||||
(subscription as any).current_period_start ??
|
||||
(subscription as any).items?.data?.[0]?.current_period_start ??
|
||||
(subscription as any).start_date ??
|
||||
Math.floor(Date.now() / 1000);
|
||||
|
||||
const currentPeriodEndTimestamp =
|
||||
subscription.current_period_end ??
|
||||
(subscription as any).current_period_end ??
|
||||
(subscription as any).items?.data?.[0]?.current_period_end ??
|
||||
(currentPeriodStartTimestamp + 30 * 24 * 3600);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user