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,
|
customerPhone: customer.phone,
|
||||||
session: formattedTx.id,
|
session: formattedTx.id,
|
||||||
time: dateString,
|
time: dateString,
|
||||||
direction: formattedTx.direction === 'cashIn' ? 'Cash-in' : 'Cash-out',
|
direction: formattedTx.txClass === 'cashIn' ? 'Cash-in' : 'Cash-out',
|
||||||
fiat: `${formattedTx.fiat.toString()} ${formattedTx.fiatCode}`,
|
fiat: `${formattedTx.fiat.toString()} ${formattedTx.fiatCode}`,
|
||||||
crypto: `${sms.toCryptoUnits(BN(formattedTx.cryptoAtoms), formattedTx.cryptoCode)} ${formattedTx.cryptoCode}`,
|
crypto: `${sms.toCryptoUnits(BN(formattedTx.cryptoAtoms), formattedTx.cryptoCode)} ${formattedTx.cryptoCode}`,
|
||||||
rate: `1 ${formattedTx.cryptoCode} = ${rate} ${formattedTx.fiatCode}`,
|
rate: `1 ${formattedTx.cryptoCode} = ${rate} ${formattedTx.fiatCode}`,
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ const BooleanCell = ({ name }) => {
|
||||||
const BooleanPropertiesTable = memo(
|
const BooleanPropertiesTable = memo(
|
||||||
({ title, disabled, data, elements, save, forcedEditing = false }) => {
|
({ title, disabled, data, elements, save, forcedEditing = false }) => {
|
||||||
const initialValues = R.fromPairs(
|
const initialValues = R.fromPairs(
|
||||||
elements.map(it => [it.name, data[it.name].toString() ?? null])
|
elements.map(it => [it.name, data[it.name]?.toString() ?? null])
|
||||||
)
|
)
|
||||||
|
|
||||||
const schemaValidation = R.fromPairs(
|
const schemaValidation = R.fromPairs(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue