Skip to content

Commit

Permalink
Merge pull request #1307 from Giveth/add-token-symbol-to-getEmailData…
Browse files Browse the repository at this point in the history
…DonationAttributes

add token symbol to getEmailDataDonationAttributes
  • Loading branch information
RamRamez authored Feb 8, 2024
2 parents c5052d8 + ec82ac2 commit 2204872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adapters/notifications/NotificationCenterAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ const getEmailDataDonationAttributes = async (params: {
donation: Donation;
}) => {
const { user, project, donation } = params;
const token = await findTokenByTokenAddress(donation.tokenAddress!);
const symbol = token?.symbol;
return {
email: user.email,
title: project.title,
Expand All @@ -839,7 +841,7 @@ const getEmailDataDonationAttributes = async (params: {
slug: project.slug,
projectLink: `${process.env.WEBSITE_URL}/project/${project.slug}`,
amount: Number(donation.amount),
token: await findTokenByTokenAddress(donation.tokenAddress!),
token: symbol,
transactionId: donation.transactionId.toLowerCase(),
transactionNetworkId: Number(donation.transactionNetworkId),
transactionLink: buildTxLink(
Expand Down

0 comments on commit 2204872

Please sign in to comment.