Skip to content

Commit

Permalink
fix trunk issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zielvna committed Dec 16, 2024
1 parent 7792856 commit 8b1f7b0
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 2 deletions.
157 changes: 157 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@storybook/react": "^8.1.10",
"@storybook/react-vite": "^8.1.10",
"@storybook/test": "^8.1.10",
"@trunkio/launcher": "^1.3.4",
"@types/node": "^20.12.7",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
Expand Down
4 changes: 2 additions & 2 deletions src/components/NewPosition/NewPosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,11 @@ export const NewPosition: React.FC<INewPosition> = ({
const bestTierIndex =
tokenA === null || tokenB === null
? undefined
: bestTiers.find(
: (bestTiers.find(
tier =>
(tier.tokenX.equals(tokenA) && tier.tokenY.equals(tokenB)) ||
(tier.tokenX.equals(tokenB) && tier.tokenY.equals(tokenA))
)?.bestTierIndex ?? undefined
)?.bestTierIndex ?? undefined)

const getMinSliderIndex = () => {
let minimumSliderIndex = 0
Expand Down

0 comments on commit 8b1f7b0

Please sign in to comment.