Skip to content

Commit

Permalink
[nav-bug] slideover bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: David Echelberger <[email protected]>
  • Loading branch information
dechdev committed Mar 27, 2022
1 parent 6b802c3 commit 17de793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/AppWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const AppWrapper: React.FC = () => {
useEffect(() => {
const slideQuery = searchParams.get(SLIDE_QUERY_KEY);
slideQuery !== null && setSlideQuery(slideQuery);
}, [pathname]);
}, [pathname, setSearchParams]);

// Time string
useEffect(() => {
Expand Down Expand Up @@ -106,9 +106,8 @@ export const AppWrapper: React.FC = () => {
searchParams.delete(SLIDE_QUERY_KEY);
} else {
isValidUUID(slideID) && searchParams.set(SLIDE_QUERY_KEY, slideID);
setSlideQuery(slideID);
setSearchParams(searchParams);
}
setSearchParams(searchParams);
};

const addDateToParams = (timeFilterString: CreatedFilterOptions) => {
Expand Down
1 change: 1 addition & 0 deletions src/pages/Tokens/views/PoolDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ export const PoolDetails: () => JSX.Element = () => {
dataTotal={tokenTransferTotal}
currentPage={currentPage}
rowsPerPage={rowsPerPage}
dashboardSize
headerBtn={
<IconButton
onClick={() =>
Expand Down

0 comments on commit 17de793

Please sign in to comment.