Skip to content

Commit

Permalink
Merge pull request #30 from multiversx/development
Browse files Browse the repository at this point in the history
Update isError flag on useQueryWrapper
  • Loading branch information
EmanuelMiron authored Oct 9, 2024
2 parents 46ab682 + 519e1cd commit 9a9dc5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[1.8.4](https://github.com/multiversx/mx-sdk-dapp-swap/pull/30)] - 2024-10-09

- [Update isError flag on useQueryWrapper](https://github.com/multiversx/mx-sdk-dapp-swap/pull/29)

## [[1.8.3](https://github.com/multiversx/mx-sdk-dapp-swap/pull/28)] - 2024-10-08

- [Improve RouteError Handling](https://github.com/multiversx/mx-sdk-dapp-swap/pull/27)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-dapp-swap",
"version": "1.8.3",
"version": "1.8.4",
"description": "A library to hold the main logic for swapping between tokens on the MultiversX blockchain",
"author": "MultiversX",
"license": "GPL-3.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useQueryWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const useQueryWrapper = <TData>({
}, [refetchTrigger, isRefetchEnabled, refetch, startPollingCallback]);

const isLoading = data == null && loading;
const isError = Boolean(error || data == null);
const isError = Boolean(error);
const isRefetching = loading;

return {
Expand Down

0 comments on commit 9a9dc5f

Please sign in to comment.