Commit f86db004 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

fix: remove x-axis clamping behavior in liquidity chart (#2042)

* remove x-axis clamping behavior

* remove extra curly braces around errorMessage
parent 8884020f
...@@ -60,9 +60,6 @@ export function Chart({ ...@@ -60,9 +60,6 @@ export function Chart({
} }
}, [brushDomain, onBrushDomainChange, xScale]) }, [brushDomain, onBrushDomainChange, xScale])
// ensures the brush remains in view and adapts to zooms
xScale.clamp(true)
return ( return (
<> <>
<Zoom <Zoom
......
...@@ -528,7 +528,7 @@ export default function AddLiquidity({ ...@@ -528,7 +528,7 @@ export default function AddLiquidity({
<Trans>Confirm Create</Trans> <Trans>Confirm Create</Trans>
</Dots> </Dots>
) : ( ) : (
<Text fontWeight={500}>{errorMessage ? { errorMessage } : <Trans>Create</Trans>}</Text> <Text fontWeight={500}>{errorMessage ? errorMessage : <Trans>Create</Trans>}</Text>
)} )}
</ButtonError> </ButtonError>
)} )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment