Update src/components/structures/LeftPanel.tsx

Co-authored-by: Travis Ralston <travpc@gmail.com>
pull/21833/head
Michael Telatynski 2020-10-15 17:15:01 +01:00 committed by GitHub
parent 3e548bbc94
commit 6a82a1f3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
const avatarUrlProp = `url(${avatarUrl})`;
if (!avatarUrl) {
document.body.style.removeProperty("--avatar-url");
} else if (avatarUrl && document.body.style.getPropertyValue("--avatar-url") !== avatarUrlProp) {
} else if (document.body.style.getPropertyValue("--avatar-url") !== avatarUrlProp) {
document.body.style.setProperty("--avatar-url", avatarUrlProp);
}
};