mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 02:06:19 +01:00
Merge pull request #978 from sophiabits/fix-772
Don't show metric change indicator when metric delta is 0 (resolves #772)
This commit is contained in:
commit
63bc187490
@ -19,7 +19,6 @@ const MetricCard = ({
|
||||
<animated.div className={styles.value}>{props.x.interpolate(x => format(x))}</animated.div>
|
||||
<div className={styles.label}>
|
||||
{label}
|
||||
{~~change === 0 && !hideComparison && <span className={styles.change}>{format(0)}</span>}
|
||||
{~~change !== 0 && !hideComparison && (
|
||||
<animated.span
|
||||
className={`${styles.change} ${
|
||||
|
Loading…
Reference in New Issue
Block a user