Skip to content

Commit

Permalink
Types fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed May 18, 2022
1 parent 4a4c23e commit 3af18f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export const validateMarkSizeForChartType = (
}
};

export const validateMarkSizeRatioLimits = (markSizeRatio: number) => {
if (markSizeRatio < 1 || markSizeRatio > 100) {
export const validateMarkSizeRatioLimits = (markSizeRatio?: number) => {
if (markSizeRatio !== undefined && (markSizeRatio < 1 || markSizeRatio > 100)) {
throw new Error(errors.markSizeRatioLimitsError());
}
};
Expand Down

0 comments on commit 3af18f5

Please sign in to comment.