Skip to content

Commit

Permalink
feat: modified tradeSummery (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolfx committed Feb 2, 2023
1 parent bf889a7 commit 471d4b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/Webhooks/tradeSummery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ export async function tradeSummery(
const status = autokeys.getOverallStatus;

const message = t.replace.specialChar(offer.message);
const isDonate = t.isDonate(offer);
const itemsToGiveCount = offer.itemsToGive.length;
const isDonate = t.isDonate(offer) && itemsToGiveCount === 0;

const botInfo = bot.handler.getBotInfo;

const data = {
bot: botInfo,
value,
links,
slots,
Expand Down

0 comments on commit 471d4b9

Please sign in to comment.