Skip to content

Commit

Permalink
Fix omnipool subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Oct 4, 2024
1 parent 5acce2e commit b215519
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/api/subscriptions.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
import { useMatchRoute } from "@tanstack/react-location"
import { useOmnipoolAssetsSubsciption } from "./omnipool"
import { LINKS } from "utils/navigation"

export const QuerySubscriptions = () => {
const matchRoute = useMatchRoute()

const isOmnipoolAssetsActive = [
LINKS.allPools,
LINKS.myLiquidity,
LINKS.isolated,
LINKS.omnipool,
LINKS.walletAssets,
LINKS.statsOverview,
LINKS.statsPOL,
].some((item) => matchRoute({ to: item }))

return isOmnipoolAssetsActive ? <OmnipoolAssetsSubscription /> : null
return <OmnipoolAssetsSubscription />
}

const OmnipoolAssetsSubscription = () => {
Expand Down

0 comments on commit b215519

Please sign in to comment.