custom color bugfixes: don't add hash because it is already present in flare, clear current color on logout

This commit is contained in:
evanpelle
2025-12-17 15:04:42 -08:00
parent 507f391aa1
commit bec9af6d1e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ export class PrivilegeCheckerImpl implements PrivilegeChecker {
isColorAllowed(flares: string[], color: string): PlayerColor {
const allowedColors = flares
.filter((flare) => flare.startsWith("color:"))
.map((flare) => "#" + flare.split(":")[1]);
.map((flare) => flare.split(":")[1]);
if (!allowedColors.includes(color)) {
throw new Error(`Color ${color} not allowed`);
}