From 8ddeace75753e7adc652d4e328582fbe549eb01a Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 19 Jan 2022 19:16:08 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Economy/transactions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Economy/transactions.js b/commands/Economy/transactions.js index ed3aa5a7..5f450cb3 100644 --- a/commands/Economy/transactions.js +++ b/commands/Economy/transactions.js @@ -54,8 +54,8 @@ class Transactions extends Command { embeds: [embed] }); } else { - embed.addField(message.translate("economy/transactions:T_GOT"), sortedTransactions[0].join("\n"), true); - embed.addField(message.translate("economy/transactions:T_SEND"), sortedTransactions[1].join("\n"), true); + if (sortedTransactions[0].length > 0) embed.addField(message.translate("economy/transactions:T_GOT"), sortedTransactions[0].join("\n"), true); + if (sortedTransactions[1].length > 0) embed.addField(message.translate("economy/transactions:T_SEND"), sortedTransactions[1].join("\n"), true); } message.channel.send({ embeds: [embed]