File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ export function getCategoryColorFromString(str: string): string {
108108function fallbackColor ( str : string ) : string {
109109 // Get fallback color
110110 // TODO: Fetch setting from somewhere better, where defaults are respected
111- const useColorFallback = localStorage !== undefined ? localStorage . useColorFallback : true ;
111+ const useColorFallback =
112+ localStorage !== undefined ? localStorage . useColorFallback === 'true' : true ;
112113 if ( useColorFallback ) {
113114 return getColorFromString ( str ) ;
114115 } else {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export default {
1313 name: ' ColorSettings' ,
1414 data : () => {
1515 return {
16- useColorFallback: localStorage .useColorFallback || true ,
16+ useColorFallback: localStorage .useColorFallback === ' true' ,
1717 };
1818 },
1919 watch: {
You can’t perform that action at this time.
0 commit comments