Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix: remove x-axis clamping behavior in liquidity chart (#2042)
Browse files Browse the repository at this point in the history
* remove x-axis clamping behavior

* remove extra curly braces around errorMessage
  • Loading branch information
Justin Domingue authored Jul 13, 2021
1 parent 8884020 commit f86db00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/components/LiquidityChartRangeInput/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ export function Chart({
}
}, [brushDomain, onBrushDomainChange, xScale])

// ensures the brush remains in view and adapts to zooms
xScale.clamp(true)

return (
<>
<Zoom
Expand Down
2 changes: 1 addition & 1 deletion src/pages/AddLiquidity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ export default function AddLiquidity({
<Trans>Confirm Create</Trans>
</Dots>
) : (
<Text fontWeight={500}>{errorMessage ? { errorMessage } : <Trans>Create</Trans>}</Text>
<Text fontWeight={500}>{errorMessage ? errorMessage : <Trans>Create</Trans>}</Text>
)}
</ButtonError>
)}
Expand Down

0 comments on commit f86db00

Please sign in to comment.