diff --git a/lib/new-config-manager.js b/lib/new-config-manager.js index efb844507..680b57a9d 100644 --- a/lib/new-config-manager.js +++ b/lib/new-config-manager.js @@ -1,5 +1,3 @@ -const {AUTH_METHODS} = require('./compliance-triggers') - const _ = require('lodash/fp') const { validate } = require('uuid') diff --git a/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js b/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js index e216c03be..bb3601524 100644 --- a/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js +++ b/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js @@ -51,6 +51,7 @@ const GET_TRANSACTIONS = gql` customerIdCardPhotoPath customerFrontCameraPath customerPhone + customerEmail discount customerId isAnonymous diff --git a/new-lamassu-admin/src/pages/Transactions/DetailsCard.js b/new-lamassu-admin/src/pages/Transactions/DetailsCard.js index 57f077853..1cfeacc91 100644 --- a/new-lamassu-admin/src/pages/Transactions/DetailsCard.js +++ b/new-lamassu-admin/src/pages/Transactions/DetailsCard.js @@ -138,7 +138,7 @@ const DetailsRow = ({ it: tx, timezone }) => { .minus(cashInFee) .toFixed(2, 1) // ROUND_DOWN const crypto = getCryptoAmount(tx) - const cryptoFee = getCryptoFeeAmount(tx) + const cryptoFee = tx.fee ? `${getCryptoFeeAmount(tx)} ${tx.fiatCode}` : 'N/A' const exchangeRate = BigNumber(fiat) .div(crypto) .toFixed(2, 1) // ROUND_DOWN @@ -382,7 +382,7 @@ const DetailsRow = ({ it: tx, timezone }) => { {tx.txClass === 'cashIn' && (
- {cryptoFee} {tx.fiatCode} + {cryptoFee}
)}
diff --git a/new-lamassu-admin/src/pages/Wallet/helper.js b/new-lamassu-admin/src/pages/Wallet/helper.js index cf2871bd5..d68c4fd71 100644 --- a/new-lamassu-admin/src/pages/Wallet/helper.js +++ b/new-lamassu-admin/src/pages/Wallet/helper.js @@ -208,7 +208,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => { const widthAdjust = wizard ? 11 : 0 const viewCryptoCurrency = it => { const currencyDisplay = R.compose( - it => `${R.prop(['display'])(it)} ${it.isBeta ? '(Beta)' : ''}`, + it => `${R.prop(['display'])(it)} ${it?.isBeta ? '(Beta)' : ''}`, R.find(R.propEq('code', it)) )(cryptoCurrencies) return currencyDisplay