3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 08:05:01 +00:00

Fix null values in supporter amounts

This commit is contained in:
Dragory 2020-05-30 03:54:03 +03:00
parent 18f2c4b662
commit fb9b3664d9

View file

@ -1520,7 +1520,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
if (supporters.length) {
aboutContent.embed.fields.push({
name: "Zeppelin supporters 🎉",
value: supporters.map(s => `**${s.name}** ${s.amount && `${s.amount}€/mo`}`).join("\n"),
value: supporters.map(s => `**${s.name}** ${s.amount ? `${s.amount}€/mo` : ""}`.trim()).join("\n"),
});
}