chore: fix per-tag preferences for offline subscriptions

This commit is contained in:
Aman Harwara
2023-02-07 17:53:29 +05:30
parent 625e522234
commit 5f28fc9773

View File

@@ -42,7 +42,7 @@ const DisplayOptionsMenu: FunctionComponent<DisplayOptionsMenuProps> = ({
: selectedTag.preferences
const [currentMode, setCurrentMode] = useState<PreferenceMode>(selectedTagPreferences ? 'tag' : 'global')
const [preferences, setPreferences] = useState<TagPreferences>({})
const hasSubscription = application.hasValidSubscription()
const hasSubscription = application.features.hasFirstPartySubscription()
const controlsDisabled = currentMode === 'tag' && !hasSubscription
const isDailyEntry = selectedTagPreferences?.entryMode === 'daily'