mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-20 00:35:23 +00:00
Refactor: Resolve vscode type error in renderStatsCard function long locales check (#2985)
This commit is contained in:
parent
95b3170655
commit
b6d5835441
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue