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
1 changed files with 9 additions and 9 deletions

View File

@ -60,21 +60,21 @@ export const MultiSendDetails = ({ txData }: { txData: TransactionData }): React
const title = `Send ${amount} ${nativeCoin.name} to:`
if (dataDecoded) {
// Backend decoded data
details = <MethodDetails data={dataDecoded} />
} else {
// We couldn't decode it but we have data
details = data && <HexEncodedData hexData={data} />
}
return (
details && (
<MultiSendTxGroup
key={`${data ?? to}-${index}`}
actionTitle={actionTitle}
txDetails={{ title, address: to, dataDecoded }}
>
{details}
</MultiSendTxGroup>
)
<MultiSendTxGroup
key={`${data ?? to}-${index}`}
actionTitle={actionTitle}
txDetails={{ title, address: to, dataDecoded }}
>
{details}
</MultiSendTxGroup>
)
})}
</>