mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-16 08:17:39 +00:00
Refactor: Resolve vscode type error in renderStatsCard function long locales check (#2985)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user