16 lines
564 B
TypeScript
16 lines
564 B
TypeScript
// Metro module 11004 (f11005).
|
|
import SubscriptionStore from "../../../../stores/billing/SubscriptionStore";
|
|
import UserOfferStore from "../../../../stores/billing/UserOfferStore";
|
|
export function canOpenPremiumPlanDirectlyForReferralTrial() {
|
|
const premiumTypeSubscription = SubscriptionStore.getPremiumTypeSubscription(false);
|
|
let r6 = SubscriptionStore.hasFetchedSubscriptions();
|
|
const isFetchingOffer = UserOfferStore.isFetchingOffer();
|
|
if (r6) {
|
|
r6 = premiumTypeSubscription == null;
|
|
}
|
|
if (r6) {
|
|
r6 = !isFetchingOffer;
|
|
}
|
|
return r6;
|
|
}
|