Skip to content

Commit

Permalink
Merge pull request #465 from alleslabs/fix/remove-querykey-index
Browse files Browse the repository at this point in the history
fix: wrong access queryKey in validator info
  • Loading branch information
evilpeach authored Aug 7, 2023
2 parents d3add95 + 1f35884 commit f2d43c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#465](https://github.com/alleslabs/celatone-frontend/pull/465) Fix wrong access queryKey in validator info
- [#464](https://github.com/alleslabs/celatone-frontend/pull/464) Fix `useFaucetInfo` hook by adding `assetInfos` to its dependencies
- [#463](https://github.com/alleslabs/celatone-frontend/pull/463) Fix event box content clipping and improve animation
- [#462](https://github.com/alleslabs/celatone-frontend/pull/462) Fix validator query dependencies
Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/validatorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useValidator = (
): UseQueryResult<Validator> => {
const lcdEndpoint = useBaseApiRoute("rest");
const queryFn = async ({ queryKey }: QueryFunctionContext<string[]>) =>
getValidator(queryKey[2], queryKey[3] as ValidatorAddr);
getValidator(queryKey[1], queryKey[2] as ValidatorAddr);

return useQuery(
[
Expand Down

2 comments on commit f2d43c2

@vercel
Copy link

@vercel vercel bot commented on f2d43c2 Aug 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 f2d43c2 Aug 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.