Show Multisend information even when there is no details (#1904)

This commit is contained in:
Daniel Sanchez 2021-02-15 16:55:33 +01:00 committed by GitHub
parent d115e4f532
commit 37f3b30112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
)
) )
})} })}
</> </>