Fixed avatar not appearing for text-only setting

- fixes a bug that avatars for logged in members didn't appear on the trigger button (bottom right) when the setting for the button was set to 'Text only'
This commit is contained in:
Peter Zimon 2022-02-07 16:47:52 +01:00
parent 0a55cfa82e
commit 3e8e6341ee

View File

@ -107,7 +107,7 @@ class TriggerButtonContent extends React.Component {
const Style = Styles({brandColor: this.context.brandColor});
const memberGravatar = this.context.member && this.context.member.avatar_image;
if (!buttonStyle.includes('icon')) {
if (!buttonStyle.includes('icon') && !this.context.member) {
return null;
}