mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-12 13:41:40 +08:00
Refactor: Resolve vscode type error in renderStatsCard function long locales check (#2985)
This commit is contained in:
parent
95b3170655
commit
b6d5835441
@ -220,7 +220,7 @@ const renderStatsCard = (stats, options = {}) => {
|
|||||||
"nl",
|
"nl",
|
||||||
"zh-tw",
|
"zh-tw",
|
||||||
];
|
];
|
||||||
const isLongLocale = longLocales.includes(locale);
|
const isLongLocale = locale ? longLocales.includes(locale) : false;
|
||||||
|
|
||||||
// filter out hidden stats defined by user & create the text nodes
|
// filter out hidden stats defined by user & create the text nodes
|
||||||
const statItems = Object.keys(STATS)
|
const statItems = Object.keys(STATS)
|
||||||
|
Loading…
Reference in New Issue
Block a user