fix: Token Details chart: adjust curveTension on 1H chart timeframe (#4632)

Adjust curveTension on 1H chart timeframe
This commit is contained in:
Greg Bugyis 2022-09-16 20:19:20 +03:00 committed by GitHub
parent ed95f1b966
commit efaefe2e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -254,8 +254,8 @@ export function PriceChart({ width, height, tokenAddress, priceData }: PriceChar
const crosshairEdgeMax = width * 0.85
const crosshairAtEdge = !!crosshair && crosshair > crosshairEdgeMax
/* Default curve doesn't look good for the ALL chart */
const curveTension = timePeriod === TimePeriod.ALL ? 0.75 : 0.9
/* Default curve doesn't look good for the HOUR/ALL chart */
const curveTension = timePeriod === TimePeriod.ALL ? 0.75 : timePeriod === TimePeriod.HOUR ? 1 : 0.9
return (
<>