Skip to content

Commit

Permalink
feat(MyMessenger): add accepted tokens to email generation
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddaqqa committed Oct 17, 2024
1 parent fab8b8a commit e8e3240
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/views/partners/Partner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,29 @@ const Widget = ({
if (partner.supportedCurrencies && supportedCurrencies.isCam) otherPartnerAccept.push('CAM')
if (partner.supportedCurrencies && supportedCurrencies.offChainPaymentSupported)
otherPartnerAccept.push('offChainPaymentSupported')
if (
partner.supportedCurrencies &&
supportedCurrencies.tokens &&
supportedCurrencies.tokens.length > 0
)
otherPartnerAccept = [
...otherPartnerAccept,
[...supportedCurrencies.tokens.filter(elem => elem.symbol)],
]
let myPartnerAccept = []
if (data.supportedCurrencies && data.supportedCurrencies.isCam) myPartnerAccept.push('CAM')
if (data.supportedCurrencies && data.supportedCurrencies.offChainPaymentSupported)
myPartnerAccept.push('offChainPaymentSupported')
if (
data.supportedCurrencies &&
data.supportedCurrencies.tokens &&
data.supportedCurrencies.tokens.length > 0
) {
myPartnerAccept = [
...myPartnerAccept,
...data.supportedCurrencies.tokens.map(elem => elem.symbol),
]
}
const subject = 'Connect on Camino Messenger'
let bodyEnding = match
? `
Expand Down

0 comments on commit e8e3240

Please sign in to comment.