Skip to content

Commit

Permalink
fix: Use full length constant
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Oct 22, 2024
1 parent 3665554 commit 2b6b7f8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/lib/modules/pool/PoolList/PoolListFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
TagLabel,
Text,
useColorModeValue,
VisuallyHidden,
VStack,
} from '@chakra-ui/react'
import { PoolListSearch } from './PoolListSearch'
Expand Down Expand Up @@ -423,13 +422,13 @@ function ProtocolVersionFilter() {

useEffect(() => {
if (protocolVersion === 3) {
setActiveProtocolVersionTab(tabs[2])
setActiveProtocolVersionTab(PROTOCOL_VERSION_TABS[2])
} else if (protocolVersion === 2) {
setActiveProtocolVersionTab(tabs[1])
setActiveProtocolVersionTab(PROTOCOL_VERSION_TABS[1])
} else if (poolTypes.includes(GqlPoolType.CowAmm)) {
setActiveProtocolVersionTab(tabs[3])
setActiveProtocolVersionTab(PROTOCOL_VERSION_TABS[3])
} else {
setActiveProtocolVersionTab(tabs[0])
setActiveProtocolVersionTab(PROTOCOL_VERSION_TABS[0])
}
}, [])

Expand Down Expand Up @@ -513,7 +512,7 @@ export function PoolListFilters() {
>
Filters
</Text>
{totalFilterCount === 0 && (
{totalFilterCount > 0 && (
<Button onClick={_resetFilters} size="xs" variant="link">
Reset all
</Button>
Expand Down

0 comments on commit 2b6b7f8

Please sign in to comment.