chore: fix per-tag preferences for offline subscriptions
This commit is contained in:
@@ -42,7 +42,7 @@ const DisplayOptionsMenu: FunctionComponent<DisplayOptionsMenuProps> = ({
|
|||||||
: selectedTag.preferences
|
: selectedTag.preferences
|
||||||
const [currentMode, setCurrentMode] = useState<PreferenceMode>(selectedTagPreferences ? 'tag' : 'global')
|
const [currentMode, setCurrentMode] = useState<PreferenceMode>(selectedTagPreferences ? 'tag' : 'global')
|
||||||
const [preferences, setPreferences] = useState<TagPreferences>({})
|
const [preferences, setPreferences] = useState<TagPreferences>({})
|
||||||
const hasSubscription = application.hasValidSubscription()
|
const hasSubscription = application.features.hasFirstPartySubscription()
|
||||||
const controlsDisabled = currentMode === 'tag' && !hasSubscription
|
const controlsDisabled = currentMode === 'tag' && !hasSubscription
|
||||||
const isDailyEntry = selectedTagPreferences?.entryMode === 'daily'
|
const isDailyEntry = selectedTagPreferences?.entryMode === 'daily'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user