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/readmes/%24%7Bargs.pageFn.jump%20n%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 ? ( + + ) : ( + [ + />, - + />, + ] )} );