mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +01:00
fix null toString event data bug
This commit is contained in:
parent
29694352e7
commit
32f0d23de4
@ -37,7 +37,7 @@ export const MetricCard = ({
|
|||||||
return (
|
return (
|
||||||
<div className={classNames(styles.card, className, showPrevious && styles.compare)}>
|
<div className={classNames(styles.card, className, showPrevious && styles.compare)}>
|
||||||
{showLabel && <div className={styles.label}>{label}</div>}
|
{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))}
|
{props?.x?.to(x => formatValue(x))}
|
||||||
</animated.div>
|
</animated.div>
|
||||||
{showChange && (
|
{showChange && (
|
||||||
|
Loading…
Reference in New Issue
Block a user