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

* remove x-axis clamping behavior

* remove extra curly braces around errorMessage
This commit is contained in:
Justin Domingue 2021-07-13 14:17:52 -07:00 committed by GitHub
parent 8884020fab
commit f86db00464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

@ -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

@ -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>
)}