Merge remote-tracking branch 'origin/dev' into dev

pull/1554/head
Mike Cao 2022-10-07 17:13:32 -07:00
commit aa64b76518
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export function stringToColor(str) {
let color = '#';
for (let i = 0; i < 3; i++) {
let value = (hash >> (i * 8)) & 0xff;
color += ('00' + value.toString(16)).substring(-2);
color += ('00' + value.toString(16)).slice(-2);
}
return color;
}