From 4f6dde23c0aa5f1565d5659be8e2d0427e6f5d71 Mon Sep 17 00:00:00 2001 From: William O'Beirne Date: Thu, 26 Apr 2018 14:19:54 -0400 Subject: [PATCH] Render Falsey Contract Outputs (#1684) --- .../components/Interact/components/InteractExplorer/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx b/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx index 1ab39872..ae8277e6 100644 --- a/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx +++ b/common/containers/Tabs/Contracts/components/Interact/components/InteractExplorer/index.tsx @@ -127,7 +127,8 @@ class InteractExplorerClass extends Component { {selectedFunction.contract.outputs.map((output: any, index: number) => { const { type, name } = output; const parsedName = name === '' ? index : name; - const rawFieldValue = outputs[parsedName] || ''; + const o = outputs[parsedName]; + const rawFieldValue = o === null || o === undefined ? '' : o; const decodedFieldValue = Buffer.isBuffer(rawFieldValue) ? bufferToHex(rawFieldValue) : rawFieldValue;