mirror of
https://github.com/cerc-io/mars-interface.git
synced 2025-07-26 22:32:08 +00:00
fix: remove lifeline check
This commit is contained in:
parent
7ba97af90c
commit
1311fced07
@ -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
|
||||||
|
|
||||||
|
@ -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}
|
||||||
|
@ -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}>
|
||||||
|
Loading…
Reference in New Issue
Block a user