Skip to content

Commit

Permalink
fix: ADAE-1814 miss value search when sort
Browse files Browse the repository at this point in the history
  • Loading branch information
DinhTran committed Feb 22, 2024
1 parent 02f0497 commit 2de0872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commons/hooks/usePageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const usePageInfo = () => {

const setSort = (sort: string) => {
if (sort === "") {
history.replace({ search: stringify({ ...pick(pageInfo, ["page", "size", "retired"]), page: 1 }) });
history.replace({ search: stringify({ ...pick(pageInfo, ["page", "size", "retired", "tokenName"]), page: 1 }) });
} else {
history.replace({ search: stringify({ ...pageInfo, page: 1, sort }) });
}
Expand Down

0 comments on commit 2de0872

Please sign in to comment.