1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix ThemeType casing issue (#18039)

This commit is contained in:
David Walsh 2023-03-13 10:00:55 -05:00 committed by GitHub
parent 0fca0e3542
commit 000dbb976c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ export default class Routes extends Component {
const { theme } = this.props;
if (theme !== prevProps.theme) {
if (theme === ThemeType.OS) {
if (theme === ThemeType.os) {
this.handleOsTheme();
} else {
document.documentElement.setAttribute('data-theme', theme);