From 23a7b21698cb37d8b92e2b0eb0087ed5a26409ae Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 30 May 2020 03:54:03 +0300 Subject: [PATCH] Fix null values in supporter amounts --- backend/src/plugins/Utility.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility.ts b/backend/src/plugins/Utility.ts index dbd9c570..8e5a63d1 100644 --- a/backend/src/plugins/Utility.ts +++ b/backend/src/plugins/Utility.ts @@ -1520,7 +1520,7 @@ export class UtilityPlugin extends ZeppelinPlugin { 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"), }); }