@@ -561,7 +561,7 @@ function getSortedUsers(sortBy) {
561561 'followers-desc' : ( a , b ) => b . followers - a . followers ,
562562 'followers-asc' : ( a , b ) => a . followers - b . followers ,
563563 'followers-growth-desc' : ( a , b ) => ( b . followers_growth_pct ?? - Infinity ) - ( a . followers_growth_pct ?? - Infinity ) ,
564- 'followers-growth-asc' : ( a , b ) => ( a . followers_growth_pct ?? - Infinity ) - ( b . followers_growth_pct ?? - Infinity ) ,
564+ 'followers-growth-asc' : ( a , b ) => ( a . followers_growth_pct ?? Infinity ) - ( b . followers_growth_pct ?? Infinity ) ,
565565 'following-desc' : ( a , b ) => b . following - a . following ,
566566 'following-asc' : ( a , b ) => a . following - b . following ,
567567 'repos-desc' : ( a , b ) => b . repos - a . repos ,
@@ -688,9 +688,9 @@ function buildCardElement(user) {
688688
689689 // Display followers growth
690690 if ( user . followers_growth_pct > 0 ) {
691- const growth = document . createElement ( 'span ' ) ;
691+ const growth = document . createElement ( 'div ' ) ;
692692 growth . className = 'growth-indicator' ;
693- growth . textContent = ` Followers Growth (since last week): (+${ user . followers_growth_pct } %)` ;
693+ growth . textContent = `Followers Growth (since last week): (+${ user . followers_growth_pct } %)` ;
694694 box . appendChild ( growth ) ;
695695
696696 }
0 commit comments