fixed broken logo

This commit is contained in:
Fedor Katurov 2019-12-14 18:37:06 +07:00
parent bbd7f801b4
commit 40c589063a

View file

@ -1,6 +1,6 @@
import * as React from 'react';
import { LOGOS } from '$constants/logos';
import { connect } from 'react-redux';
import * as React from "react";
import { LOGOS } from "$constants/logos";
import { connect } from "react-redux";
import { IRootState } from "$redux/user/reducer";
interface Props extends IRootState {}
@ -10,8 +10,8 @@ const Component = ({ logo }: Props) => (
className="logo-preview"
style={{
backgroundImage: logo
? `url(${LOGOS[logo][1]})`
: 'none'
? `url(${LOGOS && LOGOS[logo] && LOGOS[logo][1]})`
: "none"
}}
/>
);