Skip to content

Commit

Permalink
[CircularProgress] Handle default props regression
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 31, 2019
1 parent 1e7c4e1 commit 0399f16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ CircularProgress.propTypes = {
* This only works if variant is `indeterminate`.
*/
disableShrink: chainPropTypes(PropTypes.bool, props => {
if (props.disableShrink && props.variant !== 'indeterminate') {
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
return new Error(
'Material-UI: you have provided the `disableShrink` property ' +
'with a variant other than `indeterminate`. This will have no effect.',
Expand Down

0 comments on commit 0399f16

Please sign in to comment.