mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-16 16:17:04 +00:00
Refactor: Top langs card: Use default value instead if statement (#3082)
This commit is contained in:
@@ -719,7 +719,7 @@ const getDefaultLanguagesCountByLayout = ({ layout, hide_progress }) => {
|
||||
const renderTopLanguages = (topLangs, options = {}) => {
|
||||
const {
|
||||
hide_title = false,
|
||||
hide_border,
|
||||
hide_border = false,
|
||||
card_width,
|
||||
title_color,
|
||||
text_color,
|
||||
@@ -808,9 +808,7 @@ const renderTopLanguages = (topLangs, options = {}) => {
|
||||
|
||||
if (disable_animations) card.disableAnimations();
|
||||
|
||||
if (hide_border) {
|
||||
card.setHideBorder(hide_border);
|
||||
}
|
||||
card.setHideBorder(hide_border);
|
||||
card.setHideTitle(hide_title);
|
||||
card.setCSS(
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user