From 39183cafe7b7a7c027bf8bd141c2bbac1a979bda Mon Sep 17 00:00:00 2001 From: danielailie Date: Thu, 29 Apr 2021 13:35:17 +0300 Subject: [PATCH] FIx compiling error --- react-delegationdashboard/src/pages/Owner/Nodes/NodeRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-delegationdashboard/src/pages/Owner/Nodes/NodeRow.tsx b/react-delegationdashboard/src/pages/Owner/Nodes/NodeRow.tsx index eda5d647..916bdb95 100644 --- a/react-delegationdashboard/src/pages/Owner/Nodes/NodeRow.tsx +++ b/react-delegationdashboard/src/pages/Owner/Nodes/NodeRow.tsx @@ -57,10 +57,10 @@ const NodeRow = ({ blsKey: key }: { blsKey: NodeType; index: number }) => { args: [BytesValue.fromHex(key.blsKey)], }); if (key.status.key === 'unStaked') { - const untypedResponse = value.outputUntyped(); dapp.proxy .queryContract(query) .then(value => { + const untypedResponse = value.outputUntyped(); const remainingUnBondPeriod = decodeUnsignedNumber(untypedResponse[0]); const newRemaining = remainingUnBondPeriod !== undefined ? remainingUnBondPeriod : 0;