Commit 38bee0d0 authored by tom's avatar tom

small fixes

parent 1413d1f2
......@@ -19,6 +19,10 @@ const AddressCoinBalanceChart = ({ addressHash }: Props) => {
value: BigNumber(value).div(10 ** appConfig.network.currency.decimals).toNumber(),
})), [ data ]);
if (!items?.length) {
return null;
}
return (
<ChartWidget
chartHeight="200px"
......
......@@ -41,7 +41,7 @@ const TxRawTrace = () => {
}
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);
......@@ -56,6 +56,9 @@ const TxRawTrace = () => {
minHeight="500px"
p={ 4 }
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