From 747089cd5be10fa4b1c6c088aa74c2fd408dac24 Mon Sep 17 00:00:00 2001 From: Steven Yi Date: Fri, 12 Jul 2024 12:01:34 -0400 Subject: [PATCH] fix: update observerAddress for gateway settings --- src/pages/Gateway/index.tsx | 4 ++-- src/pages/Gateways/index.tsx | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/Gateway/index.tsx b/src/pages/Gateway/index.tsx index 7be3368..9dde81d 100644 --- a/src/pages/Gateway/index.tsx +++ b/src/pages/Gateway/index.tsx @@ -293,7 +293,7 @@ const Gateway = () => { ? parseFloat(changed.stake as string) : undefined; - const updateGatewaySettingsParams: UpdateGatewaySettingsParams = { + const updateGatewaySettingsParams: UpdateGatewaySettingsParams & { observerAddress: string }= { allowDelegatedStaking: changed.allowDelegatedStaking as boolean, delegateRewardShareRatio: formState.allowDelegatedStaking && changed.delegateRewardShareRatio @@ -310,7 +310,7 @@ const Gateway = () => { note: changed.note as string, properties: changed.properties as string, autoStake: changed.autoStake as boolean, - observerWallet: changed.observerAddress as string, + observerAddress: changed.observerAddress as string, }; setShowBlockingMessageModal(true); diff --git a/src/pages/Gateways/index.tsx b/src/pages/Gateways/index.tsx index 56db7bf..cb8b454 100644 --- a/src/pages/Gateways/index.tsx +++ b/src/pages/Gateways/index.tsx @@ -36,7 +36,6 @@ const Gateways = () => { useEffect(() => { const tableData: Array = Object.entries(gateways ?? {}).reduce( (acc: Array, [owner, gateway]) => { - gateway.stats.passedConsecutiveEpochs; return [ ...acc, {