fix: remove lifeline check

This commit is contained in:
Linkie Link 2023-02-13 15:18:46 +01:00
parent 7ba97af90c
commit 1311fced07
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA
3 changed files with 3 additions and 4 deletions

View File

@ -136,7 +136,7 @@ export const IncentivesButton = () => {
} }
} }
const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || '' const transactionHash = response?.hash || ''
if (!userWalletAddress) return null if (!userWalletAddress) return null

View File

@ -73,11 +73,10 @@ export const TxResponse = ({
return [t('common.completed'), null] return [t('common.completed'), null]
}, [txStatus, t]) }, [txStatus, t])
const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || ''
return ( return (
<Card isClose={true} onClick={handleClose} title={cardTitle}> <Card isClose={true} onClick={handleClose} title={cardTitle}>
{txStatus === TxStatus.FAILURE ? ( {txStatus === TxStatus.FAILURE ? (
<TxFailedContent handleClose={handleClose} hash={transactionHash} message={error} /> <TxFailedContent handleClose={handleClose} hash={response?.hash || ''} message={error} />
) : ( ) : (
<TxSuccessContent <TxSuccessContent
handleClose={handleClose} handleClose={handleClose}

View File

@ -27,7 +27,7 @@ export const TxSuccessContent = ({
const { t } = useTranslation() const { t } = useTranslation()
const chainInfo = useStore((s) => s.chainInfo) const chainInfo = useStore((s) => s.chainInfo)
const explorerUrl = chainInfo && SimpleChainInfoList[chainInfo.chainId as ChainInfoID].explorer const explorerUrl = chainInfo && SimpleChainInfoList[chainInfo.chainId as ChainInfoID].explorer
const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || '' const transactionHash = response?.hash || ''
return ( return (
<div className={styles.container}> <div className={styles.container}>