fix: allow empty badge desc
This commit is contained in:
parent
58295ade3c
commit
1666e350a6
|
@ -3,6 +3,8 @@ import {GetNitroInstance} from "..";
|
|||
export const LocalizeBadgeDescription = (key: string) => {
|
||||
let badgeDesc = GetNitroInstance().localization.getBadgeDesc(key);
|
||||
|
||||
if (badgeDesc === "") return badgeDesc;
|
||||
|
||||
if (!badgeDesc || !badgeDesc.length) badgeDesc = `badge_desc_${key}`;
|
||||
|
||||
return badgeDesc;
|
||||
|
|
Loading…
Reference in New Issue