Skip to content

Commit

Permalink
Merge pull request #1670 from RafaelTaranto/chore/merge-9-into-10-202…
Browse files Browse the repository at this point in the history
…40404

Chore/merge 9 into 10 20240404
  • Loading branch information
RafaelTaranto authored Apr 4, 2024
2 parents 8b405ae + fe274ff commit 4a2c05c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/new-config-manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const {AUTH_METHODS} = require('./compliance-triggers')

const _ = require('lodash/fp')
const { validate } = require('uuid')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const GET_TRANSACTIONS = gql`
customerIdCardPhotoPath
customerFrontCameraPath
customerPhone
customerEmail
discount
customerId
isAnonymous
Expand Down
4 changes: 2 additions & 2 deletions new-lamassu-admin/src/pages/Transactions/DetailsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -382,7 +382,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
{tx.txClass === 'cashIn' && (
<div className={classes.blockFee}>
<Label>Network Fee</Label>
{cryptoFee} {tx.fiatCode}
{cryptoFee}
</div>
)}
<div className={classes.sessionId}>
Expand Down
2 changes: 1 addition & 1 deletion new-lamassu-admin/src/pages/Wallet/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a2c05c

Please sign in to comment.