diff --git a/packages/pl-fe/src/features/audio/index.tsx b/packages/pl-fe/src/features/audio/index.tsx index 823535db7..d710f9197 100644 --- a/packages/pl-fe/src/features/audio/index.tsx +++ b/packages/pl-fe/src/features/audio/index.tsx @@ -316,7 +316,7 @@ const Audio: React.FC = (props) => { }; const _draw = () => { - visualizer.current?.draw(_getCX(), _getCY(), _getAccentColor(), _getRadius(), _getScaleCoefficient()); + visualizer.current?.draw(_getCX(), _getCY(), _getAccentColor() || '#ffffff', _getRadius(), _getScaleCoefficient()); }; const _getRadius = (): number => ((height || props.height || 0) - (PADDING * _getScaleCoefficient()) * 2) / 2; @@ -327,7 +327,7 @@ const Audio: React.FC = (props) => { const _getCY = (): number => Math.floor(_getRadius() + (PADDING * _getScaleCoefficient())); - const _getAccentColor = (): string => accentColor || '#ffffff'; + const _getAccentColor = () => accentColor || undefined; const _getBackgroundColor = (): string => backgroundColor || '#000000'; @@ -493,15 +493,19 @@ const Audio: React.FC = (props) => { /> -
-
+
+
-