CalmPref: respect inverted form state
@@ -42,7 +42,7 @@ export function CalmPrefs() {
_.forEach(v, (bool, key) => {
const bucket = ['imageShown', 'videoShown', 'audioShown', 'oembedShown'].includes(key) ? 'remoteContentPolicy' : 'calm';
if(initialValues[key] !== bool) {
- putEntry(bucket, key, bool);
+ putEntry(bucket, key, bucket === 'calm' ? bool : !bool);
}
});
}, [initialValues]);
