Skip to content

Commit

Permalink
fix null toString event data bug
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscao633 committed Jun 21, 2024
1 parent 2969435 commit 32f0d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/metrics/MetricCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const MetricCard = ({
return (
<div className={classNames(styles.card, className, showPrevious && styles.compare)}>
{showLabel && <div className={styles.label}>{label}</div>}
<animated.div className={styles.value} title={value.toString()}>
<animated.div className={styles.value} title={value?.toString()}>
{props?.x?.to(x => formatValue(x))}
</animated.div>
{showChange && (
Expand Down

0 comments on commit 32f0d23

Please sign in to comment.