mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-12-27 06:25:47 +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",
|
||||
"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
|
||||
const statItems = Object.keys(STATS)
|
||||
|
Loading…
Reference in New Issue
Block a user