Remove log message and fix null check

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2020-07-02 20:51:49 +02:00 committed by mrdrogdrog
parent e1e8a76fda
commit bee715b8f9

View file

@ -10,9 +10,7 @@ export interface BrandingProps {
export const Branding: React.FC<BrandingProps> = ({ inline = false }) => {
const branding = useSelector((state: ApplicationState) => state.backendConfig.branding)
const showBranding = branding.name !== '' || branding.logo !== ''
console.log(branding.logo)
const showBranding = !!branding.name || !!branding.logo
return (
<ShowIf condition={showBranding}>