Don't show metric change indicator when metric delta is 0

This commit is contained in:
Sophia Willows 2022-02-20 14:25:33 +13:00
parent 1e4c3ebf3b
commit ef3f08788f
No known key found for this signature in database
GPG Key ID: E8D91D5F808FA2EC

View File

@ -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} ${