From a2c7707fd9cf7f9e994e78c947489f7fc70070b3 Mon Sep 17 00:00:00 2001 From: jinhojang6 Date: Sun, 3 Nov 2024 21:37:06 +0900 Subject: [PATCH] chore: update totalXpPerBlock --- src/components/Dashboard/OperatorGrid/OperatorGrid.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard/OperatorGrid/OperatorGrid.tsx b/src/components/Dashboard/OperatorGrid/OperatorGrid.tsx index d14b4b8db0..e7ae8b3c3f 100644 --- a/src/components/Dashboard/OperatorGrid/OperatorGrid.tsx +++ b/src/components/Dashboard/OperatorGrid/OperatorGrid.tsx @@ -16,8 +16,9 @@ const OperatorGrid: React.FC = ({ }: OperatorGridProps) => { const stakedOperators = data?.filter((operator) => operator.isStaked) + // staked operators count * 50 const totalXpPerBlock = data?.reduce( - (acc, operator) => acc + (operator.stakingXPPerBlock ?? 0), + (acc, operator) => acc + (operator.isStaked ? 50 : 0), 0, )