diff --git a/src/components/common/Header/IncentivesButton.tsx b/src/components/common/Header/IncentivesButton.tsx index b7f6b26..343b3b7 100644 --- a/src/components/common/Header/IncentivesButton.tsx +++ b/src/components/common/Header/IncentivesButton.tsx @@ -136,6 +136,8 @@ export const IncentivesButton = () => { } } + const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || '' + if (!userWalletAddress) return null return ( @@ -174,10 +176,7 @@ export const IncentivesButton = () => { {response ? (

{t('incentives.successfullyClaimed')}

- +
) : (
diff --git a/src/components/common/TxModal/TxFailedContent.tsx b/src/components/common/TxModal/TxFailedContent.tsx index d1c3fc9..b6c5654 100644 --- a/src/components/common/TxModal/TxFailedContent.tsx +++ b/src/components/common/TxModal/TxFailedContent.tsx @@ -16,7 +16,6 @@ interface Props { export const TxFailedContent = ({ message, hash, handleClose }: Props) => { const chainInfo = useStore((s) => s.chainInfo) const explorerUrl = chainInfo && SimpleChainInfoList[chainInfo.chainId as ChainInfoID].explorer - const { t } = useTranslation() return ( diff --git a/src/components/common/TxModal/TxResponse.tsx b/src/components/common/TxModal/TxResponse.tsx index ef23c65..00f91b2 100644 --- a/src/components/common/TxModal/TxResponse.tsx +++ b/src/components/common/TxModal/TxResponse.tsx @@ -73,14 +73,11 @@ export const TxResponse = ({ return [t('common.completed'), null] }, [txStatus, t]) + const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || '' return ( {txStatus === TxStatus.FAILURE ? ( - + ) : ( s.chainInfo) const explorerUrl = chainInfo && SimpleChainInfoList[chainInfo.chainId as ChainInfoID].explorer + const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || '' return (
@@ -65,10 +66,7 @@ export const TxSuccessContent = ({
{t('common.txHash')}
- +
)}