Skip to content

Commit

Permalink
fix(meter): incorrect peak value showing (#1926)
Browse files Browse the repository at this point in the history
  • Loading branch information
theiliad authored Dec 4, 2024
1 parent 3be796b commit bd44d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/graphs/meter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export class Meter extends Component {
if (peakValue !== null) {
if (peakValue > domainMax) {
peakData = domainMax
} else if (peakValue < data[0].value) {
peakData = data[0].value > domainMax ? domainMax : data[0].value
} else if (peakValue < 0) {
peakData = 0
}
}

Expand Down

0 comments on commit bd44d25

Please sign in to comment.