Skip to content

Commit

Permalink
Merge pull request #157 from alleslabs/fix/chain-path
Browse files Browse the repository at this point in the history
Fix/chain path
  • Loading branch information
evilpeach committed Feb 7, 2023
2 parents 50897d1 + e299620 commit 2a105c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#157](https://github.com/alleslabs/celatone-frontend/pull/157) Fix chain path bug when mixed up with query params
- [#154](https://github.com/alleslabs/celatone-frontend/pull/154) Stay on the same contract list page after renaming the list
- [#155](https://github.com/alleslabs/celatone-frontend/pull/155) Fix uncontrolled input error and fix space bar issue in editable cell
- [#156](https://github.com/alleslabs/celatone-frontend/pull/156) Fix json editor cannot focus by clicking on empty area
Expand Down
3 changes: 2 additions & 1 deletion src/lib/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ const Header = () => {
if (chainName === currentChainName) return;
setCurrentChain(chainName);
navigate({
pathname: router.asPath.replace(`/${router.query.network}`, ""),
pathname: router.pathname.replace("/[network]", ""),
query: {
/**
* @remarks Condition checking varies by chain
*/
...router.query,
network: getNetworkByChainName(chainName),
},
});
Expand Down

2 comments on commit 2a105c9

@vercel
Copy link

@vercel vercel bot commented on 2a105c9 Feb 7, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 2a105c9 Feb 7, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.