fix conditional for injecting experiment method (#366)

This commit is contained in:
Ben Warzeski
2021-02-22 12:33:27 -05:00
committed by GitHub
parent 49bfc65a03
commit 4bbc29591c

View File

@@ -15,7 +15,7 @@ export default function DateSummary({
/** [MM-P2P experiment] */
const [showMMP2P, setShowMMP2P] = useState(window.experiment__home_dates_bShowMMP2P);
if (window.experiment__home_dates_showMMP2P !== undefined) {
if (window.experiment__home_dates_showMMP2P === undefined) {
window.experiment__home_dates_showMMP2P = (value) => {
setShowMMP2P(!!value);
window.experiment__home_dates_bShowMMP2P = !!value;