From: Nutomic Date: Mon, 14 Mar 2022 20:11:21 +0000 (+0000) Subject: Fix error during new site setup (#596) X-Git-Url: http://these/git/%7B%60/css/themes/static/%7Bs.link%7D?a=commitdiff_plain;h=0619b162d6dc405da6c4ceb907bef45b66cd099e;p=lemmy-ui.git Fix error during new site setup (#596) * Fix error during new site setup * remove logging --- diff --git a/src/shared/components/app/app.tsx b/src/shared/components/app/app.tsx index 67816f6..9ddff69 100644 --- a/src/shared/components/app/app.tsx +++ b/src/shared/components/app/app.tsx @@ -28,7 +28,7 @@ export class App extends Component {
{siteRes && siteRes.site_view && diff --git a/src/shared/components/app/theme.tsx b/src/shared/components/app/theme.tsx index 0af7ca7..b609b71 100644 --- a/src/shared/components/app/theme.tsx +++ b/src/shared/components/app/theme.tsx @@ -4,7 +4,7 @@ import { MyUserInfo } from "lemmy-js-client"; interface Props { myUserInfo: MyUserInfo | undefined; - defaultTheme: string; + defaultTheme?: string; } export class Theme extends Component { @@ -22,7 +22,10 @@ export class Theme extends Component { /> ); - } else if (this.props.defaultTheme != "browser") { + } else if ( + this.props.defaultTheme != null && + this.props.defaultTheme != "browser" + ) { return (