Commit b5a8c0a1 authored by tom's avatar tom

empty list messages

parent 10b69e1c
......@@ -106,6 +106,10 @@ const ContractRead = ({ isProxy }: Props) => {
return <ContentLoader/>;
}
if (data.length === 0) {
return <span>No public read { isProxy ? 'proxy' : '' } functions were found for this contract.</span>;
}
return (
<>
<ContractConnectWallet/>
......
......@@ -116,6 +116,10 @@ const ContractWrite = ({ isProxy }: Props) => {
return <ContentLoader/>;
}
if (data.length === 0) {
return <span>No public write { isProxy ? 'proxy' : '' } functions were found for this contract.</span>;
}
return (
<>
<ContractConnectWallet/>
......
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