ambassify / react-avatar

Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user.
MIT License
643 stars 118 forks source link

'round' parameter with integer throws a Warning (but works) #240

Closed mlasevich closed 2 years ago

mlasevich commented 2 years ago

When using an integer with round, everything appears to work, except getting a warning.

Warning: Failed prop type: Invalid prop `round` supplied to `Avatar`, expected one of type [boolean, string].

The warning is incorrect as it looks like only boolean or integer work


Looks like this: https://github.com/ambassify/react-avatar/blob/master/src/avatar.js#L56 should probably be PropTypes.number