diff --git a/plugins/woocommerce-admin/client/components/filters/date/content.js b/plugins/woocommerce-admin/client/components/filters/date/content.js index 22d14657ceb..ba3ac3d5eb4 100644 --- a/plugins/woocommerce-admin/client/components/filters/date/content.js +++ b/plugins/woocommerce-admin/client/components/filters/date/content.js @@ -83,12 +83,12 @@ class DatePickerContent extends Component { initialTabName={ 'custom' === period ? 'custom' : 'period' } onSelect={ this.onTabSelect } > - { ( { name: selectedTab } ) => ( + { selected => ( - { selectedTab === 'period' && ( + { selected.name === 'period' && ( ) } - { selectedTab === 'custom' && ( + { selected.name === 'custom' && ( @@ -113,7 +113,7 @@ class DatePickerContent extends Component {
- { selectedTab === 'custom' && ( + { selected.name === 'custom' && (