Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed invalid prop in Dot.

Mike Cao7d2ab240e625
diff --git a/components/metrics/Legend.js b/components/metrics/Legend.js
index b919d80e9..52ab8b15e 100644
--- a/components/metrics/Legend.js
+++ b/components/metrics/Legend.js
@@ -35,7 +35,7 @@ export default function Legend({ chart }) {
className={classNames(styles.label, { [styles.hidden]: hidden })}
onClick={() => handleClick(datasetIndex)}
>
- <Dot color={color.setAlpha(color.getAlpha() + 0.2)} />
+ <Dot color={color.setAlpha(color.getAlpha() + 0.2).toHexString()} />
<span className={locale}>{text}</span>
</div>
);