Skip to content

Commit

Permalink
fix: only show color scheme toast if change is required (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara authored Apr 13, 2022
1 parent a91a1cb commit 4405f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/Services/ThemeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class ThemeManager extends ApplicationService {
const isDefaultThemePreferredAndNotActive =
themeIdentifier === DefaultThemeIdentifier && activeTheme

if (isPreferredThemeNotActive || isDefaultThemePreferredAndNotActive) {
if (isPreferredThemeNotActive && isDefaultThemePreferredAndNotActive) {
this.showColorSchemeToast(setTheme)
}
}
Expand Down

0 comments on commit 4405f3b

Please sign in to comment.