mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-14 18:57:50 +01:00
web: handle null productId
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -147,7 +147,7 @@ export const BuyDialog = DialogManager.register(function BuyDialog(
|
||||
</Text>
|
||||
</Flex>
|
||||
<PlansList
|
||||
selectedPlan={user?.subscription.productId}
|
||||
selectedPlan={user?.subscription?.productId}
|
||||
recommendedPlan={SubscriptionPlan.PRO}
|
||||
onPlanSelected={(plan) => selectPlan(plan)}
|
||||
/>
|
||||
|
||||
@@ -42,7 +42,7 @@ import { useStore as useUserStore } from "../../stores/user-store";
|
||||
import { getCurrencySymbol } from "../../common/currencies";
|
||||
|
||||
type PlansListProps = {
|
||||
selectedPlan?: string;
|
||||
selectedPlan?: string | null;
|
||||
loadAllPlans?: boolean;
|
||||
ignoreTrial?: boolean;
|
||||
recommendedPlan?: SubscriptionPlan;
|
||||
|
||||
Reference in New Issue
Block a user