Fix display of error message while loading tx by nonce
This commit is contained in:
parent
f9f7a569e2
commit
97f6ae89fe
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue