Skip to content

Commit

Permalink
Merge pull request #46 from ar-io/hotfix-update-gateways-observer-add…
Browse files Browse the repository at this point in the history
…ress

fix: update observerAddress for gateway settings
  • Loading branch information
kunstmusik authored Jul 12, 2024
2 parents 9b470ee + 747089c commit 8589cec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/Gateway/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/pages/Gateways/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const Gateways = () => {
useEffect(() => {
const tableData: Array<TableData> = Object.entries(gateways ?? {}).reduce(
(acc: Array<TableData>, [owner, gateway]) => {
gateway.stats.passedConsecutiveEpochs;
return [
...acc,
{
Expand Down

0 comments on commit 8589cec

Please sign in to comment.