Correctly show the label behavior when adult content is disabled
This commit is contained in:
@@ -60,7 +60,9 @@ export function ModerationLabelPref({
|
|||||||
|
|
||||||
// adjust the pref based on whether warn is available
|
// adjust the pref based on whether warn is available
|
||||||
let prefAdjusted = pref
|
let prefAdjusted = pref
|
||||||
if (!canWarn && pref === 'warn') {
|
if (adultDisabled) {
|
||||||
|
prefAdjusted = 'hide'
|
||||||
|
} else if (!canWarn && pref === 'warn') {
|
||||||
prefAdjusted = 'ignore'
|
prefAdjusted = 'ignore'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user