Skip to content

fix(GlAvatar): properly validate size prop

Paul Gascou-Vaillancourt requested to merge fix-avatar-validator into main

What does this MR do?

In !2102 (merged) we introduced some custom logic in GlAvatar's size prop validator to log a more helpful error message when the provided size is invalid. A conditional was unfortunately reversed, which resulted in errors being thrown for any valid value. This addresses the issue.

Closes #1362 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports

Loading