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 fc725fe
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

0 comments on commit fc725fe

Please sign in to comment.