File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/shared/containers/timeline-wall Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import './styles.scss';
24
24
const FETCHING_PENDING_APPROVAL_EVENTS_INTERVAL = _ . get ( config , 'TIMELINE.FETCHING_PENDING_APPROVAL_EVENTS_INTERVAL' , 0 ) ;
25
25
const FORUM_LINK = _ . get ( config , 'TIMELINE.FORUM_LINK' , '' ) ;
26
26
function TimelineWallContainer ( props ) {
27
+ const currentTime = new Date ( ) ;
28
+ const thisYear = currentTime . getFullYear ( ) ;
27
29
const [ tab , setTab ] = useState ( 0 ) ;
28
30
const fetchingApprovalsInterval = useRef ( null ) ;
29
31
const [ showRightFilterMobile , setShowRightFilterMobile ] = useState ( false ) ;
@@ -223,7 +225,7 @@ function TimelineWallContainer(props) {
223
225
type = "button"
224
226
styleName = "filter-dropdown hide-desktop show-mobile"
225
227
>
226
- < span > { selectedFilterValue . year ? selectedFilterValue . year : '' } </ span >
228
+ < span > { selectedFilterValue . year ? selectedFilterValue . year : thisYear } </ span >
227
229
< IconCheveronDownBlue />
228
230
</ button >
229
231
</ div >
You can’t perform that action at this time.
0 commit comments