fix: sms receipt tx direction
This commit is contained in:
parent
c8f5e471be
commit
f205f99d7f
2 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ function buildSms (data, receiptOptions) {
|
|||
customerPhone: customer.phone,
|
||||
session: formattedTx.id,
|
||||
time: dateString,
|
||||
direction: formattedTx.direction === 'cashIn' ? 'Cash-in' : 'Cash-out',
|
||||
direction: formattedTx.txClass === 'cashIn' ? 'Cash-in' : 'Cash-out',
|
||||
fiat: `${formattedTx.fiat.toString()} ${formattedTx.fiatCode}`,
|
||||
crypto: `${sms.toCryptoUnits(BN(formattedTx.cryptoAtoms), formattedTx.cryptoCode)} ${formattedTx.cryptoCode}`,
|
||||
rate: `1 ${formattedTx.cryptoCode} = ${rate} ${formattedTx.fiatCode}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue