// @flow
import React from 'react';
import config from 'app/config';
import AprilFools from './AprilFools';

type Props = {
  children: any
};

class SpecialDay extends React.Component<Props> {
  static getSpecialDay() {
    if (AprilFools.isCorrectDate()) {
      return AprilFools;
    }
    return null;
  }

  render() {
    const { children, ...rest } = this.props;
    const specialDay = SpecialDay.getSpecialDay();

    if (config.environment === 'ci' || specialDay === null) {
      return React.Children.map(children, child =>
        React.cloneElement(child, { ...rest })
      );
    }

    return React.createElement(specialDay, rest, children);
  }
}

export default SpecialDay;

@@ -364,16 +364,71 @@
 .props;%0A
+    const filteredChildren = children.filter(Boolean);%0A
     cons
@@ -470,16 +470,16 @@
 lDay();%0A
-
 %0A    if 
@@ -565,17 +565,25 @@
 ren.map(
-c
+filteredC
 hildren,
@@ -704,17 +704,25 @@
 , rest, 
-c
+filteredC
 hildren)

Fix the bad code