Skip to content

Commit

Permalink
Fix: back button behaviour from bridge page (#1246)
Browse files Browse the repository at this point in the history
* fix: use history replace instead of push to fix looping of bridge page

* chore: clean up and bump version

---------

Co-authored-by: tomjeatt <[email protected]>
  • Loading branch information
Chanakya888 and tomjeatt authored May 31, 2023
1 parent 64716ee commit a38f2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/hooks/use-update-query-parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useUpdateQueryParameters = (): ((newQueryParameters: QueryParameters) => v
...newQueryParameters
};

history.push({
history.replace({
...location,
search: queryString.stringify(queryParameters)
});
Expand Down

2 comments on commit a38f2af

@vercel
Copy link

@vercel vercel bot commented on a38f2af May 31, 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 a38f2af May 31, 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.