tie p2p action only to targetted date-summary entry if there are multiple (#367)
This commit is contained in:
@@ -15,7 +15,10 @@ export default function DateSummary({
|
||||
|
||||
/** [MM-P2P experiment] */
|
||||
const [showMMP2P, setShowMMP2P] = useState(window.experiment__home_dates_bShowMMP2P);
|
||||
if (window.experiment__home_dates_showMMP2P === undefined) {
|
||||
if (
|
||||
dateBlock.dateType === 'verified-upgrade-deadline'
|
||||
&& window.experiment__home_dates_showMMP2P === undefined
|
||||
) {
|
||||
window.experiment__home_dates_showMMP2P = (value) => {
|
||||
setShowMMP2P(!!value);
|
||||
window.experiment__home_dates_bShowMMP2P = !!value;
|
||||
|
||||
Reference in New Issue
Block a user