From 15d3cb8ff4ba01ef33c67751fbf7059e4c16ae2d Mon Sep 17 00:00:00 2001 From: nicolas Date: Thu, 27 May 2021 06:34:24 -0300 Subject: [PATCH] Tx decoded data, fix addresses array (#2309) --- .../Transactions/TxList/MethodValue.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/routes/safe/components/Transactions/TxList/MethodValue.tsx b/src/routes/safe/components/Transactions/TxList/MethodValue.tsx index a33e6647..840b7899 100644 --- a/src/routes/safe/components/Transactions/TxList/MethodValue.tsx +++ b/src/routes/safe/components/Transactions/TxList/MethodValue.tsx @@ -49,8 +49,23 @@ const GenericValue = ({ method, type, value }: RenderValueProps): React.ReactEle } const Value = ({ type, ...props }: RenderValueProps): React.ReactElement => { - const explorerUrl = getExplorerInfo(props.value as string) + if (isArrayParameter(type) && isAddress(type)) { + return ( +
+ [ + + {(props.value as string[]).map((address) => { + const explorerUrl = getExplorerInfo(address) + return + })} + + ] +
+ ) + } + if (isAddress(type)) { + const explorerUrl = getExplorerInfo(props.value as string) return ( )