Fixed invalid prop in Dot.

This commit is contained in:
Mike Cao 2022-01-14 00:21:59 -08:00
parent db6e341e6e
commit 7d2ab240e6

View File

@ -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>
);