Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Dec 21, 2023
1 parent 55d6171 commit 8e7bd5c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ type ChartsReferenceLineProps<TValue extends string | number | Date = string | n

function ChartsReferenceLine(props: ChartsReferenceLineProps) {
if (props.x !== undefined && props.y !== undefined) {
throw new Error('MUI-X-Charts: The ChartsReferenceLine can not have both `x` and `y` props set.');
throw new Error(
'MUI-X-Charts: The ChartsReferenceLine can not have both `x` and `y` props set.',
);
}

if (props.x === undefined && props.y === undefined) {
throw new Error('MUI-X-Charts: The ChartsReferenceLine should have a value in `x` or `y` prop.');
throw new Error(
'MUI-X-Charts: The ChartsReferenceLine should have a value in `x` or `y` prop.',
);
}

if (props.x !== undefined) {
Expand Down

0 comments on commit 8e7bd5c

Please sign in to comment.