diff --git a/src/components/transactions/TxDetails/TxData/DecodedData/ValueArray/index.tsx b/src/components/transactions/TxDetails/TxData/DecodedData/ValueArray/index.tsx index 8bc19b7cf5..9ddfd67723 100644 --- a/src/components/transactions/TxDetails/TxData/DecodedData/ValueArray/index.tsx +++ b/src/components/transactions/TxDetails/TxData/DecodedData/ValueArray/index.tsx @@ -35,24 +35,26 @@ export const Value = ({ type, value, ...props }: ValueArrayProps): ReactElement return ( [ -
- {parsedValue.map((address, index) => { - const key = `${props.key || props.method}-${index}` - if (Array.isArray(address)) { - const newProps = { - type, - ...props, - value: address, + {parsedValue.length > 0 && ( +
+ {parsedValue.map((address, index) => { + const key = `${props.key || props.method}-${index}` + if (Array.isArray(address)) { + const newProps = { + type, + ...props, + value: address, + } + return } - return - } - return ( -
- -
- ) - })} -
+ return ( +
+ +
+ ) + })} +
+ )} ]
)