diff --git a/components/identities/actions/identityActions.tsx b/components/identities/actions/identityActions.tsx index 625f2b8e..d7da0c9f 100644 --- a/components/identities/actions/identityActions.tsx +++ b/components/identities/actions/identityActions.tsx @@ -51,6 +51,7 @@ const IdentityActions: FunctionComponent = ({ const encodedDomains = utils.encodeDomain(identity?.domain); const { addTransaction } = useNotificationManager(); const [isTxModalOpen, setIsTxModalOpen] = useState(false); + const [txHash, setTxHash] = useState(''); const [viewMoreClicked, setViewMoreClicked] = useState(false); const [isMainDomain, setIsMainDomain] = useState( identity ? identity.isMain : false @@ -159,6 +160,7 @@ const IdentityActions: FunctionComponent = ({ status: "pending", }, }); + setTxHash(mainDomainData.transaction_hash); setIsTxModalOpen(true); // eslint-disable-next-line react-hooks/exhaustive-deps }, [mainDomainData]); @@ -199,6 +201,7 @@ const IdentityActions: FunctionComponent = ({ status: "pending", }, }); + setTxHash(disableRenewalData.transaction_hash); setIsTxModalOpen(true); posthog?.capture("disable-ar"); // track events for analytics // eslint-disable-next-line react-hooks/exhaustive-deps @@ -360,7 +363,7 @@ const IdentityActions: FunctionComponent = ({ domain={identity?.domain} /> setIsTxModalOpen(false)} title="Your Transaction is on it's way !"