Skip to content

Commit

Permalink
Refactor: Resolve vscode type error in renderStatsCard function long …
Browse files Browse the repository at this point in the history
…locales check (anuraghazra#2985)
  • Loading branch information
qwerty541 authored Jul 24, 2023
1 parent 95b3170 commit b6d5835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/stats-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6d5835

Please sign in to comment.