File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -418,13 +418,17 @@ const MeritReportPage = () => {
418418 const compTotal = prepareCompensationHistory ( data , ( comp ) => ! ! comp . totalComp ) ;
419419
420420 let text = markdown . headers . h2 ( "Compensation History" ) ;
421+ text += markdown . headers . h3 ( "Base Compensation (annual or hourly)" ) ;
421422 text += markdown . lists . ul ( compBase ,
422423 ( comp ) => formatDate ( dateFromArray ( comp . startDate ) ) + " - " +
423- "$" + parseFloat ( comp . amount ) . toFixed ( 2 ) + " (base)" ) ;
424- text += "\n" ;
424+ "$" + parseFloat ( comp . amount ) . toFixed ( 2 ) ) ;
425+ text += markdown . headers . h3 ( "Total Compensation" )
425426 text += markdown . lists . ul ( compTotal ,
426- ( comp ) => dateFromArray ( comp . startDate ) . getFullYear ( ) + " - " +
427- comp . totalComp + " (total comp)" ) ;
427+ ( comp ) => {
428+ var date = dateFromArray ( comp . startDate ) ;
429+ date = date . getMonth ( ) === 0 && date . getDate ( ) === 1 ? date . getFullYear ( ) : formatDate ( date ) ;
430+ return date + " - " + comp . totalComp ;
431+ } ) ;
428432 return text ;
429433 } ;
430434
You can’t perform that action at this time.
0 commit comments