diff --git a/packages/desktop-client/src/components/settings/Upcoming.tsx b/packages/desktop-client/src/components/settings/Upcoming.tsx index 854c9f41c0d..1e442e566ba 100644 --- a/packages/desktop-client/src/components/settings/Upcoming.tsx +++ b/packages/desktop-client/src/components/settings/Upcoming.tsx @@ -6,7 +6,6 @@ import { Column } from 'glamor/jsxstyle'; import { type SyncedPrefs } from 'loot-core/types/prefs'; -import { useFeatureFlag } from '../../hooks/useFeatureFlag'; import { useSyncedPref } from '../../hooks/useSyncedPref'; import { type CSSProperties, theme } from '../../style'; import { Button } from '../common/Button2'; @@ -39,13 +38,9 @@ export function UpcomingLengthSettings() { }, }; - const enabled = useFeatureFlag('upcomingLengthAdjustment'); - const location = useLocation(); const [expanded, setExpanded] = useState(location.hash === '#upcomingLength'); - if (!enabled) return null; - return expanded ? ( = { spendingReport: false, dashboards: false, actionTemplating: false, - upcomingLengthAdjustment: false, }; export function useFeatureFlag(name: FeatureFlag): boolean { diff --git a/packages/loot-core/src/types/prefs.d.ts b/packages/loot-core/src/types/prefs.d.ts index 8678cb0218c..8817cc3b509 100644 --- a/packages/loot-core/src/types/prefs.d.ts +++ b/packages/loot-core/src/types/prefs.d.ts @@ -3,8 +3,7 @@ export type FeatureFlag = | 'reportBudget' | 'goalTemplatesEnabled' | 'spendingReport' - | 'actionTemplating' - | 'upcomingLengthAdjustment'; + | 'actionTemplating'; /** * Cross-device preferences. These sync across devices when they are changed.