From dc4400aa343ea7a98368da0e828fd9052f1f3c4c Mon Sep 17 00:00:00 2001 From: Kata Date: Sun, 2 Feb 2020 14:27:33 -0500 Subject: [PATCH] fix(ServerCard): black names should be white --- UI/src/utils.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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