From: Dessalines Date: Tue, 27 Oct 2020 00:52:50 +0000 (-0500) Subject: Fixing an issue with browser theme. X-Git-Url: http://these/git/%7B%60%24%7BghostArchiveUrl%7D/static/%7B%60%24%7BwebArchiveUrl%7D/save/%24%7BencodeURIComponent%28url%29%7D%60%7D?a=commitdiff_plain;h=dcb52b5c47d09f9a1a2b09e96c643374898c7313;p=lemmy-ui.git Fixing an issue with browser theme. --- diff --git a/src/shared/components/theme.tsx b/src/shared/components/theme.tsx index a1e0a01..5dfc01c 100644 --- a/src/shared/components/theme.tsx +++ b/src/shared/components/theme.tsx @@ -9,33 +9,33 @@ interface Props { export class Theme extends Component { render() { const { user } = this.props; - const userTheme = user && user.theme && ( - - ); + const hasUserTheme = user && user.theme !== 'browser'; return ( - {userTheme ?? ( - <> + {hasUserTheme ? ( + + ) : ( + [ + />, - + />, + ] )} );