Skip to content

Commit

Permalink
Refactor: Top langs card: Resolve type error with hide_border variable (
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Aug 6, 2023
1 parent 3b975d0 commit d2e4ddd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cards/top-languages-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,9 @@ const renderTopLanguages = (topLangs, options = {}) => {

if (disable_animations) card.disableAnimations();

card.setHideBorder(hide_border);
if (hide_border) {
card.setHideBorder(hide_border);
}
card.setHideTitle(hide_title);
card.setCSS(
`
Expand Down

0 comments on commit d2e4ddd

Please sign in to comment.