Skip to content

Commit

Permalink
fix: address type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thisislawatts committed Oct 14, 2021
1 parent 579afb0 commit ab4f643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Loader/index.tsx
Expand Up @@ -34,11 +34,11 @@ export class Loader extends Component<IProps> {
super(props)
}
render() {
const logo = this.props.themeStore.currentTheme.logo
const logo = this.props?.themeStore?.currentTheme.logo || null
return (
<>
<Flex flexWrap="wrap" justifyContent="center">
<RotatingLogo src={logo} width={[75, 75, 100]} />
{logo && <RotatingLogo src={logo} width={[75, 75, 100]} />}
<Text txtcenter width={1}>
loading...
</Text>
Expand Down

0 comments on commit ab4f643

Please sign in to comment.