redundant code is redundant
parent
ef3df3e3fa
commit
65eacff3d3
|
@ -207,10 +207,8 @@ export default {
|
||||||
// Make it explicit that guests get the defaults (although they shouldn't
|
// Make it explicit that guests get the defaults (although they shouldn't
|
||||||
// have been able to ever toggle the flags anyway)
|
// have been able to ever toggle the flags anyway)
|
||||||
const userValue = localStorage.getItem(`mx_labs_feature_${featureId}`);
|
const userValue = localStorage.getItem(`mx_labs_feature_${featureId}`);
|
||||||
if (userValue !== null) {
|
|
||||||
return userValue === 'true';
|
return userValue === 'true';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
console.warn(`Unknown features config for ${featureId}: ${sdkConfigValue}`);
|
console.warn(`Unknown features config for ${featureId}: ${sdkConfigValue}`);
|
||||||
|
|
Loading…
Reference in New Issue