Commit b5a8c0a1 authored by tom's avatar tom

empty list messages

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