From f5dba929a553873e8d5c1bc27c51bfd75eb9685a Mon Sep 17 00:00:00 2001 From: Bettenbuk Zoltan Date: Fri, 20 Sep 2019 15:47:53 +0200 Subject: [PATCH] fix: add support for functional component type icons --- .../features/base/avatar/components/AbstractStatelessAvatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/avatar/components/AbstractStatelessAvatar.js b/react/features/base/avatar/components/AbstractStatelessAvatar.js index 53d21bd06..1cf04e545 100644 --- a/react/features/base/avatar/components/AbstractStatelessAvatar.js +++ b/react/features/base/avatar/components/AbstractStatelessAvatar.js @@ -42,6 +42,6 @@ export default class AbstractStatelessAvatar extends PureComponent

* @returns {boolean} */ _isIcon(iconProp: ?string | ?Object): boolean { - return Boolean(iconProp) && typeof iconProp === 'object'; + return Boolean(iconProp) && (typeof iconProp === 'object' || typeof iconProp === 'function'); } }