remove not needed variable, PR request
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user