Skip to content

Commit

Permalink
Merge pull request #3242 from OlympusDAO/coolerDropdownFix
Browse files Browse the repository at this point in the history
cooler dropdown fix
  • Loading branch information
brightiron authored Nov 30, 2024
2 parents e532f99 + 4f9edf2 commit 6753f3f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/views/Lending/Cooler/positions/Positions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ export const CoolerPositions = () => {
<OutstandingPrincipal />
</Grid>
</Grid>
{([(loansV1 || []).length > 0, (loansV2 || []).length > 0, (loansV3 || []).length > 0].filter(Boolean).length >
1 ||
{([(loansV1 || []).length > 0, (loansV2 || []).length > 0].filter(Boolean).length > 0 ||
(clearingHouses.v3?.isActive &&
clearingHouses.v3?.capacity.gt(0) &&
((loansV1 && loansV1.length > 0) || (loansV2 && loansV2.length > 0)))) && (
Expand Down Expand Up @@ -166,10 +165,7 @@ export const CoolerPositions = () => {
(clearingHouses.v2?.capacity.gt(0) && clearingHouses.v2?.isActive)) && (
<MenuItem value="v2">ClearingHouse V2</MenuItem>
)}
{((loansV3 && loansV3.length > 0) ||
(clearingHouses.v3?.capacity.gt(0) && clearingHouses.v3?.isActive)) && (
<MenuItem value="v3">ClearingHouse V3</MenuItem>
)}
<MenuItem value="v3">ClearingHouse V3</MenuItem>
</Select>
</Box>
)}
Expand Down

0 comments on commit 6753f3f

Please sign in to comment.