Fix display of error message while loading tx by nonce

This commit is contained in:
Willian Mitsuda 2022-02-01 16:01:23 -03:00
parent f9f7a569e2
commit 97f6ae89fe
1 changed files with 6 additions and 2 deletions

View File

@ -57,7 +57,11 @@ const AddressTransactionByNonce: React.FC<AddressTransactionByNonceProps> = ({
const navigate = useNavigate(); const navigate = useNavigate();
// Loading... // Loading...
if (checksummedAddress === undefined || nonce === undefined) { if (
checksummedAddress === undefined ||
nonce === undefined ||
txHash === undefined
) {
return <StandardFrame />; return <StandardFrame />;
} }
@ -83,7 +87,7 @@ const AddressTransactionByNonce: React.FC<AddressTransactionByNonceProps> = ({
} }
// Valid nonce, but no tx found // Valid nonce, but no tx found
if (!txHash) { if (txHash === null) {
return ( return (
<StandardFrame> <StandardFrame>
<AddressOrENSNameInvalidNonce <AddressOrENSNameInvalidNonce