Skip to content

Commit

Permalink
other half of the code simplifying
Browse files Browse the repository at this point in the history
  • Loading branch information
FAB1150 authored Sep 11, 2024
1 parent f457377 commit 3b35895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ class MiniGraphCard extends LitElement {
if (diff > 0) {
const weights = [
min !== undefined && min[0] !== '~' || max === undefined ? 0 : 1,
max !== undefined && max[0] !== '~' ? 0 : (min === undefined ? 0 : 1),
max !== undefined && max[0] !== '~' || min === undefined ? 0 : 1,
];
const sum = weights[0] + weights[1];
if (sum > 0) {
Expand Down

0 comments on commit 3b35895

Please sign in to comment.