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

pull/978/head
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
1 changed files with 0 additions and 1 deletions

View File

@ -19,7 +19,6 @@ const MetricCard = ({
<animated.div className={styles.value}>{props.x.interpolate(x => format(x))}</animated.div> <animated.div className={styles.value}>{props.x.interpolate(x => format(x))}</animated.div>
<div className={styles.label}> <div className={styles.label}>
{label} {label}
{~~change === 0 && !hideComparison && <span className={styles.change}>{format(0)}</span>}
{~~change !== 0 && !hideComparison && ( {~~change !== 0 && !hideComparison && (
<animated.span <animated.span
className={`${styles.change} ${ className={`${styles.change} ${