Use the default setting of custom labels

This commit is contained in:
Paul Frazee
2024-03-07 17:49:15 -08:00
parent 42a6b80399
commit 249eb46343
@@ -43,7 +43,11 @@ export function ModerationLabelPref({
? preferences?.moderationPrefs.labelers.find(l => l.did === labelerDid)
?.labels[identifier]
: preferences?.moderationPrefs.labels[identifier]
const pref = variables?.visibility ?? savedPref ?? 'warn'
const pref =
variables?.visibility ??
savedPref ??
labelValueDefinition.defaultSetting ??
'warn'
const settingDesc = useLabelBehaviorDescription(labelValueDefinition, pref)
const hideLabel = useLabelLongBehaviorDescription(