diff --git a/src/components/CommonComponent/TxBottom/TxBottomComponent.js b/src/components/CommonComponent/TxBottom/TxBottomComponent.js index 68b5c2b9..e5f1acf4 100644 --- a/src/components/CommonComponent/TxBottom/TxBottomComponent.js +++ b/src/components/CommonComponent/TxBottom/TxBottomComponent.js @@ -48,10 +48,10 @@ class TxBottomComponent extends Component { - {(data || []).map((item, index) => ( - + {(data || []).map((item, index) => { + return( - ))} + )})} diff --git a/src/components/CommonPage/TxPage/TxTableBody.js b/src/components/CommonPage/TxPage/TxTableBody.js index bde611c9..cceda1f7 100644 --- a/src/components/CommonPage/TxPage/TxTableBody.js +++ b/src/components/CommonPage/TxPage/TxTableBody.js @@ -309,13 +309,13 @@ class TxTableBody extends Component { ) case TX_TYPE.TOKEN_HOLDERS: - + return ( {this.props.rank} - - - {Number(convertHexToValue(data.value).toFixed() / this.props.totalSupply).toFixed(3) * 100}% + + + {data.balance && this.props.totalSupply ? Number(data.balance.toFixed() / this.props.totalSupply.toFixed(3) * 100).toFixed(2) :"-"}% ) case TX_TYPE.ADDRESS_BONDERS: