Page MenuHomePhabricator

D9699.diff
No OneTemporary

D9699.diff

diff --git a/lib/hooks/theme.js b/lib/hooks/theme.js
--- a/lib/hooks/theme.js
+++ b/lib/hooks/theme.js
@@ -48,12 +48,10 @@
if (themePreference === globalThemeInfo.preference) {
return;
}
-
- let theme = themePreference;
- if (themePreference === 'system') {
- theme = globalThemeInfo.systemTheme;
- }
-
+ const theme =
+ themePreference === 'system'
+ ? globalThemeInfo.systemTheme
+ : themePreference;
dispatch({
type: updateThemeInfoActionType,
payload: {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 2:11 PM (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2601231
Default Alt Text
D9699.diff (559 B)

Event Timeline