mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-10 00:15:41 +00:00
Main Menu UI Overhaul (#2829)
## Description: Overhauls the Main Menu UI, visit https://menu.openfront.dev to see everything. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: w.o.n
This commit is contained in:
@@ -80,10 +80,7 @@ export function censorNameWithClanTag(username: string): string {
|
||||
|
||||
// Restore clan tag if it existed and is not profane
|
||||
if (clanTag && !clanTagIsProfane) {
|
||||
if (usernameIsProfane) {
|
||||
return `[${clanTag}] ${censoredNameWithoutClan}`;
|
||||
}
|
||||
return username;
|
||||
return `[${clanTag.toUpperCase()}] ${censoredNameWithoutClan}`;
|
||||
}
|
||||
|
||||
// Don't restore profane or nonexistent clan tag
|
||||
|
||||
Reference in New Issue
Block a user