Skip to content

Commit

Permalink
fix: disable filter / sort when user positions active
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Nov 24, 2023
1 parent b9492a6 commit 41e5901
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const AssetListFilters = () => {
<div className="space-y-2 w-full md:w-auto">
<Select
value={poolFilter}
disabled={isFilteredUserPositions}
onValueChange={(value) => {
setPoolFilter(value as PoolTypes);
}}
Expand All @@ -89,6 +90,7 @@ export const AssetListFilters = () => {
<div className="space-y-2 w-full md:w-auto">
<Select
value={sortOption.value}
disabled={isFilteredUserPositions}
onValueChange={(value) => setSortOption(SORT_OPTIONS_MAP[value as SortType])}
>
<SelectTrigger className="md:w-[220px]">
Expand Down

1 comment on commit 41e5901

@vercel
Copy link

@vercel vercel bot commented on 41e5901 Nov 24, 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.