From 3f7d798816717c09339010f8d92b13cf402e76f0 Mon Sep 17 00:00:00 2001 From: jpuri Date: Thu, 9 Jan 2025 11:41:55 +0530 Subject: [PATCH] update --- .../components/Confirm/DataTree/DataField.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/components/Views/confirmations/components/Confirm/DataTree/DataField.tsx b/app/components/Views/confirmations/components/Confirm/DataTree/DataField.tsx index 85750a1d24b..ffb6b435b53 100644 --- a/app/components/Views/confirmations/components/Confirm/DataTree/DataField.tsx +++ b/app/components/Views/confirmations/components/Confirm/DataTree/DataField.tsx @@ -5,7 +5,7 @@ import { startCase } from 'lodash'; import Address from '../../UI/InfoRow/InfoValue/Address'; import InfoRow from '../../UI/InfoRow'; -import DataTree, { DataTreeInput } from './DataTree'; +import DataTree from './DataTree'; const createStyles = (depth: number) => StyleSheet.create({ @@ -39,13 +39,9 @@ const DataField = memo( let fieldDisplay; if (type === 'address' && isValidHexAddress(value as Hex)) { fieldDisplay =
; - } else if (typeof value === 'object') { + } else if (typeof value === 'object' && value !== null) { fieldDisplay = ( - + ); } else { fieldDisplay = {value};