Correctly show the label behavior when adult content is disabled

This commit is contained in:
Paul Frazee
2024-03-10 14:22:08 -07:00
parent a180788038
commit 5ea406b6bc
@@ -60,7 +60,9 @@ export function ModerationLabelPref({
// adjust the pref based on whether warn is available
let prefAdjusted = pref
if (!canWarn && pref === 'warn') {
if (adultDisabled) {
prefAdjusted = 'hide'
} else if (!canWarn && pref === 'warn') {
prefAdjusted = 'ignore'
}