Skip to content

Commit

Permalink
[Rating] Fix typo in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 25, 2019
1 parent f0ed07b commit 15a4538
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/material-ui-lab/src/Rating/Rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,20 +354,20 @@ const Rating = React.forwardRef(function Rating(props, ref) {
})}
>
{items.map(($, indexDecimal) => {
const itemDeciamlValue = roundValueToPrecision(
const itemDecimalValue = roundValueToPrecision(
itemValue - 1 + (indexDecimal + 1) * precision,
precision,
);

return item(
{
value: itemDeciamlValue,
value: itemDecimalValue,
style:
items.length - 1 === indexDecimal
? {}
: {
width:
itemDeciamlValue === value
itemDecimalValue === value
? `${(indexDecimal + 1) * precision * 100}%`
: '0%',
overflow: 'hidden',
Expand All @@ -376,10 +376,10 @@ const Rating = React.forwardRef(function Rating(props, ref) {
},
},
{
filled: itemDeciamlValue <= value,
hover: itemDeciamlValue <= hover,
focus: itemDeciamlValue <= focus,
checked: itemDeciamlValue === valueProp,
filled: itemDecimalValue <= value,
hover: itemDecimalValue <= hover,
focus: itemDecimalValue <= focus,
checked: itemDecimalValue === valueProp,
},
);
})}
Expand Down

0 comments on commit 15a4538

Please sign in to comment.