File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,6 @@ function getShouldShowMerchant(data: OnyxTypes.SearchResults['data']): boolean {
110
110
} ) ;
111
111
}
112
112
113
- const currentYear = new Date ( ) . getFullYear ( ) ;
114
-
115
113
/**
116
114
* Type guard that checks if something is a ReportListItemType
117
115
*/
@@ -138,7 +136,9 @@ function isReportActionListItemType(item: TransactionListItemType | ReportListIt
138
136
/**
139
137
* Checks if the date of transactions or reports indicate the need to display the year because they are from a past year.
140
138
*/
141
- function shouldShowYear ( data : TransactionListItemType [ ] | ReportListItemType [ ] | OnyxTypes . SearchResults [ 'data' ] ) : boolean {
139
+ function shouldShowYear ( data : TransactionListItemType [ ] | ReportListItemType [ ] | OnyxTypes . SearchResults [ 'data' ] ) {
140
+ const currentYear = new Date ( ) . getFullYear ( ) ;
141
+
142
142
if ( Array . isArray ( data ) ) {
143
143
return data . some ( ( item : TransactionListItemType | ReportListItemType ) => {
144
144
if ( isReportListItemType ( item ) ) {
You can’t perform that action at this time.
0 commit comments