Skip to content

Commit

Permalink
Merge pull request #588 from flixlix/581-bug-fossil-fuel-dots-are-sho…
Browse files Browse the repository at this point in the history
…wn-when-lines-are-transparent-though-the-value-is-zero

fix: 🐛 check if there is fossil
  • Loading branch information
flixlix authored Apr 21, 2024
2 parents 4a54417 + 53a2648 commit 6eccc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/nonFossil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const nonFossilElement = (
? html`
<svg width="80" height="30">
<path d="M40 -10 v40" class="low-carbon ${styleLine(nonFossil.state.power || 0, config)}" id="low-carbon" />
${checkShouldShowDots(config) && nonFossil.has
${checkShouldShowDots(config) && nonFossil.has && nonFossil.state.power > 0
? svg`<circle
r="1.75"
class="low-carbon"
Expand Down

0 comments on commit 6eccc28

Please sign in to comment.