Update user avatar colours

This commit is contained in:
Andrew Kingston 2023-03-16 07:59:31 +00:00
parent 6a4420cde4
commit 66de32dfb9
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ export const createUserStores = () => {
// Generate random colour hue
let hue = 1
for (let i = 0; i < user.email.length && i < 5; i++) {
hue *= user.email.charCodeAt(i)
hue *= user.email.charCodeAt(i + 1)
hue /= 17
}
hue = hue % 360
const color =