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:
Mike Cao 2022-02-22 22:51:58 -08:00 committed by GitHub
commit 63bc187490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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