Skip to content

Commit

Permalink
Refactor: Top langs card: Use default value instead if statement (anu…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Aug 15, 2023
1 parent da82999 commit 4eefd24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cards/top-languages-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
`
Expand Down

0 comments on commit 4eefd24

Please sign in to comment.