hide PL numbers on labels

pull/21833/head
Bruno Windels 2019-11-14 16:58:56 +01:00
parent d0914f9208
commit 91e02aa623
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ export function levelRoleMap(usersDefault) {
export function textualPowerLevel(level, usersDefault) {
const LEVEL_ROLE_MAP = levelRoleMap(usersDefault);
if (LEVEL_ROLE_MAP[level]) {
return LEVEL_ROLE_MAP[level] + (level !== undefined ? ` (${level})` : ` (${usersDefault})`);
return LEVEL_ROLE_MAP[level];
} else {
return level;
return _t("Custom %(level)s", {level});
}
}