We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65e5bc commit 27679acCopy full SHA for 27679ac
public/admin/app-render.js
@@ -515,13 +515,9 @@ function dashDelta(current, previous) {
515
516
function dashDeltaHtml(value, inverted) {
517
if (value === null || value === undefined) return "";
518
+ if (value === 0) return '<div class="dash-kpi-delta neutral">\u2014</div>';
519
const sign = value > 0 ? "+" : "";
- const cls =
520
- value === 0
521
- ? "neutral"
522
- : value > 0 !== (inverted || false)
523
- ? "positive"
524
- : "negative";
+ const cls = value > 0 !== (inverted || false) ? "positive" : "negative";
525
return `<div class="dash-kpi-delta ${cls}">${sign}${value}% vs prev</div>`;
526
}
527
0 commit comments