diff --git a/UI/src/utils.js b/UI/src/utils.js index eb44042..ccf50e5 100644 --- a/UI/src/utils.js +++ b/UI/src/utils.js @@ -2,4 +2,10 @@ import color from 'color' export const msgToReal = msg => msg.replace(/') -export const colorToCSS = colorInt => color(colorInt).hsl().string() \ No newline at end of file +export const colorToCSS = colorInt => { + if (colorInt === 0) { + return '#fff' + } + + return color(colorInt).hsl().string() +} \ No newline at end of file