We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a967080 commit 16aa735Copy full SHA for 16aa735
1 file changed
src/lib/auth.js
@@ -130,7 +130,11 @@ class AuthService {
130
"#4CAF50",
131
"#FF9800",
132
];
133
- ctx.fillStyle = colors[name.split('').reduce((acc, char) => acc + char.charCodeAt(0), 0) % colors.length];
+ ctx.fillStyle =
134
+ colors[
135
+ name.split("").reduce((acc, char) => acc + char.charCodeAt(0), 0) %
136
+ colors.length
137
+ ];
138
ctx.fillRect(0, 0, 100, 100);
139
140
ctx.fillStyle = "#ffffff";
0 commit comments