mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 03:57:04 +00:00
Show Multisend information even when there is no details (#1904)
This commit is contained in:
parent
d115e4f532
commit
37f3b30112
@ -60,21 +60,21 @@ export const MultiSendDetails = ({ txData }: { txData: TransactionData }): React
|
|||||||
const title = `Send ${amount} ${nativeCoin.name} to:`
|
const title = `Send ${amount} ${nativeCoin.name} to:`
|
||||||
|
|
||||||
if (dataDecoded) {
|
if (dataDecoded) {
|
||||||
|
// Backend decoded data
|
||||||
details = <MethodDetails data={dataDecoded} />
|
details = <MethodDetails data={dataDecoded} />
|
||||||
} else {
|
} else {
|
||||||
|
// We couldn't decode it but we have data
|
||||||
details = data && <HexEncodedData hexData={data} />
|
details = data && <HexEncodedData hexData={data} />
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
details && (
|
<MultiSendTxGroup
|
||||||
<MultiSendTxGroup
|
key={`${data ?? to}-${index}`}
|
||||||
key={`${data ?? to}-${index}`}
|
actionTitle={actionTitle}
|
||||||
actionTitle={actionTitle}
|
txDetails={{ title, address: to, dataDecoded }}
|
||||||
txDetails={{ title, address: to, dataDecoded }}
|
>
|
||||||
>
|
{details}
|
||||||
{details}
|
</MultiSendTxGroup>
|
||||||
</MultiSendTxGroup>
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</>
|
</>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user