修正一错误信息。
This commit is contained in:
parent
691099ac3a
commit
cfe508ee62
|
@ -28,7 +28,7 @@ export function HslAssemble({ color, onChange }: HslAssembleProps) {
|
||||||
const newColor = colorFn?.hsl_to_hex(h, s / 100, l / 100) ?? '000000';
|
const newColor = colorFn?.hsl_to_hex(h, s / 100, l / 100) ?? '000000';
|
||||||
onChange(newColor);
|
onChange(newColor);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('[Convert RGB]', error);
|
console.error('[Convert HSL]', error);
|
||||||
}
|
}
|
||||||
}, [h, s, l]);
|
}, [h, s, l]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user