Commit 38bee0d0 authored by tom's avatar tom

small fixes

parent 1413d1f2
...@@ -19,6 +19,10 @@ const AddressCoinBalanceChart = ({ addressHash }: Props) => { ...@@ -19,6 +19,10 @@ const AddressCoinBalanceChart = ({ addressHash }: Props) => {
value: BigNumber(value).div(10 ** appConfig.network.currency.decimals).toNumber(), value: BigNumber(value).div(10 ** appConfig.network.currency.decimals).toNumber(),
})), [ data ]); })), [ data ]);
if (!items?.length) {
return null;
}
return ( return (
<ChartWidget <ChartWidget
chartHeight="200px" chartHeight="200px"
......
...@@ -41,7 +41,7 @@ const TxRawTrace = () => { ...@@ -41,7 +41,7 @@ const TxRawTrace = () => {
} }
if (data.length === 0) { if (data.length === 0) {
return <span>There is no raw trace for this transaction.</span>; return <span>No trace entries found.</span>;
} }
const text = JSON.stringify(data, undefined, 4); const text = JSON.stringify(data, undefined, 4);
...@@ -56,6 +56,9 @@ const TxRawTrace = () => { ...@@ -56,6 +56,9 @@ const TxRawTrace = () => {
minHeight="500px" minHeight="500px"
p={ 4 } p={ 4 }
value={ text } value={ text }
fontSize="sm"
borderRadius="md"
readOnly
/> />
</> </>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment