mirror of
https://github.com/cerc-io/mars-interface.git
synced 2024-12-22 20:27:44 +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
|
||||
|
||||
|
@ -73,11 +73,10 @@ export const TxResponse = ({
|
||||
return [t('common.completed'), null]
|
||||
}, [txStatus, t])
|
||||
|
||||
const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || ''
|
||||
return (
|
||||
<Card isClose={true} onClick={handleClose} title={cardTitle}>
|
||||
{txStatus === TxStatus.FAILURE ? (
|
||||
<TxFailedContent handleClose={handleClose} hash={transactionHash} message={error} />
|
||||
<TxFailedContent handleClose={handleClose} hash={response?.hash || ''} message={error} />
|
||||
) : (
|
||||
<TxSuccessContent
|
||||
handleClose={handleClose}
|
||||
|
@ -27,7 +27,7 @@ export const TxSuccessContent = ({
|
||||
const { t } = useTranslation()
|
||||
const chainInfo = useStore((s) => s.chainInfo)
|
||||
const explorerUrl = chainInfo && SimpleChainInfoList[chainInfo.chainId as ChainInfoID].explorer
|
||||
const transactionHash = response?.hash ? response?.hash : response?.response.transactionHash || ''
|
||||
const transactionHash = response?.hash || ''
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
|
Loading…
Reference in New Issue
Block a user