Skip to content

Commit

Permalink
fix: add stricter criteria to override CanonicalTokenDeployment persi…
Browse files Browse the repository at this point in the history
…sted state
  • Loading branch information
alanrsoares committed Jan 17, 2024
1 parent 9011c74 commit cd5cedc
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ function useCanonicalTokenDeploymentState(
}

setState((draft) => {
if (partialInitialState.step !== undefined && !draft.step) {
draft.step = partialInitialState.step;
if (
(partialInitialState.step !== undefined && !draft.step) ||
partialInitialState.tokenDetails?.tokenAddress !==
draft.tokenDetails.tokenAddress
) {
draft.step = partialInitialState.step ?? draft.step;
}
draft.tokenDetails = {
...draft.tokenDetails,
Expand Down

2 comments on commit cd5cedc

@vercel
Copy link

@vercel vercel bot commented on cd5cedc Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

axelar-ui – ./packages/ui

axelar-ui-git-main-axelar-network.vercel.app
axelar-ui-axelar-network.vercel.app
axelar-ui.vercel.app
ui.axelar.dev

@vercel
Copy link

@vercel vercel bot commented on cd5cedc Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

axelar-registry – ./apps/registry

axelar-registry-axelar-network.vercel.app
axelar-registry-git-main-axelar-network.vercel.app

Please sign in to comment.