File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11import React , { useContext } from 'react' ;
22import { PlanexGroupsType } from '../screens/Planex/GroupSelectionScreen' ;
33
4-
54export type CacheType = {
65 planex ?: {
76 groups ?: PlanexGroupsType ;
@@ -24,7 +23,6 @@ export function useCache() {
2423 return useContext ( CacheContext ) ;
2524}
2625
27-
2826export function useCachedPlanexGroups ( ) {
2927 const { cache, setCache } = useCache ( ) ;
3028 const groups = cache ?. planex ?. groups ;
Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ export function retrievePreferences<
157157 result . forEach ( ( item ) => {
158158 let [ key , value ] = item ;
159159 if ( value !== null ) {
160- if ( key === " dashboardItems" && value . includes ( " proximo" ) ) {
160+ if ( key === ' dashboardItems' && value . includes ( ' proximo' ) ) {
161161 // The user has changed the dashboard items
162162 // We need to replace Proximo because it isn't supported anymore (05/11/2025)
163163 // In order to do so, we reset the dashboard items to the default value
164164 value = defaultPreferences . dashboardItems ;
165165 setPreference ( PreferenceKeys . dashboardItems , value , defaults ) ;
166- console . log ( " Proximo successfully removed" ) ;
166+ console . log ( ' Proximo successfully removed' ) ;
167167 }
168-
168+
169169 preferences [ key as Keys ] = value ;
170170 }
171171 } ) ;
You can’t perform that action at this time.
0 commit comments