File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/app/pages/ConsensusTransactionDetailPage Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ Fix display of consensus transaction fee
Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ import { getPreciseNumberFormat } from 'locales/getPreciseNumberFormat'
2222import { CurrentFiatValue } from '../../components/CurrentFiatValue'
2323import { ConsensusTransactionEvents } from '../../components/Transactions/ConsensusTransactionEvents'
2424import { AllTokenPrices , useAllTokenPrices } from 'coin-gecko/api'
25- import { getFiatCurrencyForScope } from '../../../config'
25+ import { consensusDecimals , getFiatCurrencyForScope } from '../../../config'
2626import { useWantedTransaction } from '../../hooks/useWantedTransaction'
2727import { MultipleTransactionsWarning } from '../../components/Transactions/MultipleTransactionsWarning'
2828import { DashboardLink } from '../ParatimeDashboardPage/DashboardLink'
29+ import { fromBaseUnits } from '../../utils/number-utils'
2930
3031const StyledDescriptionDetails = styled ( 'dd' ) ( {
3132 '&&' : { padding : 0 } ,
@@ -166,7 +167,10 @@ export const ConsensusTransactionDetailView: FC<{
166167 ) }
167168 < dt > { t ( 'common.fee' ) } </ dt >
168169 < dd >
169- < RoundedBalance value = { transaction . fee } ticker = { transaction . ticker } />
170+ { t ( 'common.valueInToken' , {
171+ ...getPreciseNumberFormat ( fromBaseUnits ( transaction . fee , consensusDecimals ) ) ,
172+ ticker : transaction . ticker ,
173+ } ) }
170174 </ dd >
171175
172176 { /* TODO: gasUsed field will be available for Nexus with the next oasis-core release */ }
You can’t perform that action at this time.
0 commit comments