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 and devantler committed Sep 24, 2023
1 parent d0786d8 commit 9a59511
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 9a59511

Please sign in to comment.