Fix site logo and banner rendering when no logo or banner is set

This commit is contained in:
Sean King 2020-08-02 20:52:23 -06:00
parent 4717638ea8
commit ea85c424a4
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class SiteBanner extends ImmutablePureComponent {
imgLogo: (<img alt={instance.get('title')} src={soapbox.get('banner')} />),
textLogo: (<h1>{instance.get('title')}</h1>),
};
return soapbox.has('banner') ? logos.imgLogo : logos.textLogo;
return soapbox.getIn(['banner']) ? logos.imgLogo : logos.textLogo;
}
}

View file

@ -15,7 +15,7 @@ class SiteLogo extends ImmutablePureComponent {
imgLogo: (<img alt={instance.get('title')} src={soapbox.get('logo')} />),
textLogo: (<h1>{instance.get('title')}</h1>),
};
return soapbox.has('logo') ? logos.imgLogo : logos.textLogo;
return soapbox.getIn(['logo']) ? logos.imgLogo : logos.textLogo;
}
}