From 003ea095cc48177fc00b75833e852c91f8569fce Mon Sep 17 00:00:00 2001 From: gala1234 Date: Mon, 16 May 2022 14:12:31 +0200 Subject: [PATCH] remove not needed variable, PR request --- explorer/src/components/MixNodes/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/explorer/src/components/MixNodes/index.ts b/explorer/src/components/MixNodes/index.ts index fba739771d..b04570a589 100644 --- a/explorer/src/components/MixNodes/index.ts +++ b/explorer/src/components/MixNodes/index.ts @@ -25,7 +25,6 @@ export function mixNodeResponseItemToMixnodeRowType(item: MixNodeResponseItem): const totalBond = pledge + delegations; const selfPercentage = ((pledge * 100) / totalBond).toFixed(2); const profitPercentage = item.mix_node.profit_margin_percent || 0; - const avgUptime = item.avg_uptime; return { id: item.owner, status: item.status, @@ -37,6 +36,6 @@ export function mixNodeResponseItemToMixnodeRowType(item: MixNodeResponseItem): host: item?.mix_node?.host || '', layer: item?.layer || '', profit_percentage: `${profitPercentage}%`, - avg_uptime: avgUptime, + avg_uptime: item.avg_uptime, }; }