mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-29 20:22:59 +00:00
Refactor: Fixed vscode type error in renderTopLanguages function (#2964)
This commit is contained in:
committed by
GitHub
parent
65ad198d62
commit
82917825f9
@@ -738,11 +738,13 @@ const renderTopLanguages = (topLangs, options = {}) => {
|
||||
hide,
|
||||
);
|
||||
|
||||
let width = isNaN(card_width)
|
||||
? DEFAULT_CARD_WIDTH
|
||||
: card_width < MIN_CARD_WIDTH
|
||||
? MIN_CARD_WIDTH
|
||||
: card_width;
|
||||
let width = card_width
|
||||
? isNaN(card_width)
|
||||
? DEFAULT_CARD_WIDTH
|
||||
: card_width < MIN_CARD_WIDTH
|
||||
? MIN_CARD_WIDTH
|
||||
: card_width
|
||||
: DEFAULT_CARD_WIDTH;
|
||||
let height = calculateNormalLayoutHeight(langs.length);
|
||||
|
||||
// returns theme based colors with proper overrides and defaults
|
||||
|
||||
Reference in New Issue
Block a user