Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): ai plan should show even user not signed in (#6845)

CatsJuice9f432a04d403
diff --git a/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/ai/ai-plan.tsx b/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/ai/ai-plan.tsx
index 88cec7f0b6..5d277aebd8 100644
--- a/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/ai/ai-plan.tsx
+++ b/packages/frontend/core/src/components/affine/setting-modal/general-setting/plans/ai/ai-plan.tsx
@@ -26,8 +26,7 @@ export const AIPlan = () => {
}, [subscriptionService]);
// yearly subscription should always be available
- if (!price?.yearlyAmount || subscription === null) {
- // TODO: loading UI
+ if (!price?.yearlyAmount) {
return null;
}