File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -434,14 +434,13 @@ const MeritReportPage = () => {
434434
435435 const prepareCompensationHistory = ( data , fn ) => {
436436 return data . compensationHistory . filter ( fn ) . sort ( ( a , b ) => {
437- for ( let i = 0 ; i < a . length ; i ++ ) {
437+ for ( let i = 0 ; i < a . startDate . length ; i ++ ) {
438438 if ( a . startDate [ i ] != b . startDate [ i ] ) {
439439 return b . startDate [ i ] - a . startDate [ i ] ;
440440 }
441441 }
442442 return 0 ;
443443 } ) . slice ( 0 , 3 ) ;
444-
445444 } ;
446445
447446 const markdownCompensationHistory = ( data ) => {
@@ -453,9 +452,10 @@ const MeritReportPage = () => {
453452 text += markdown . lists . ul ( compBase ,
454453 ( comp ) => formatDate ( dateFromArray ( comp . startDate ) ) + " - " +
455454 "$" + parseFloat ( comp . amount ) . toFixed ( 2 ) + " (base)" ) ;
455+ text += "\n" ;
456456 text += markdown . lists . ul ( compTotal ,
457457 ( comp ) => dateFromArray ( comp . startDate ) . getFullYear ( ) + " - " +
458- comp . totalComp ) ;
458+ comp . totalComp + " (total comp)" ) ;
459459 return text ;
460460 } ;
461461
You can’t perform that action at this time.
0 commit comments