Skip to content

Commit

Permalink
Merge pull request #1489 from tradingview/improve-scale-margin-error-…
Browse files Browse the repository at this point in the history
…messages

Improved error messages for price scale margins
  • Loading branch information
romfrancois committed Jan 2, 2024
2 parents feef324 + b2d9c1f commit 5fa808f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/price-scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class PriceScale {
throw new Error(`Invalid top margin - expect value between 0 and 1, given=${top}`);
}

if (bottom < 0 || bottom > 1 || top + bottom > 1) {
if (bottom < 0 || bottom > 1) {
throw new Error(`Invalid bottom margin - expect value between 0 and 1, given=${bottom}`);
}

Expand Down

0 comments on commit 5fa808f

Please sign in to comment.