{`${t('functionType')}:`}
- {functionType}
+ {`${functionType} ${functionParams}`}
@@ -667,12 +676,12 @@ export default class ConfirmTransactionBase extends Component {
dataHexComponent,
} = this.props;
- if (hideData) {
+ if (hideData || !txParams.to) {
return null;
}
- const functionParams = params
- ? `(${params.map(({ type }) => type).join(', ')}`
+ const functionParams = params?.length
+ ? `(${params.map(({ type }) => type).join(', ')})`
: '';
return (