File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,10 +179,10 @@ export const homeSections = [
179179]
180180
181181export const getSettings = async ( ) => {
182- const config = await AsyncStorage . getItem ( 'settings' )
183- if ( config === null ) return defaultSettings
182+ const rawSettings = await AsyncStorage . getItem ( 'settings' )
183+ if ( rawSettings === null ) return defaultSettings
184184 try {
185- const data = JSON . parse ( config )
185+ const data = JSON . parse ( rawSettings )
186186 if ( data . homeOrderV2 && data ?. homeOrderV2 ?. length !== defaultSettings . homeOrderV2 . length ) {
187187 defaultSettings . homeOrderV2 . forEach ( ( section ) => {
188188 if ( ! data . homeOrderV2 . some ( ( s ) => s . id === section . id ) ) {
@@ -193,6 +193,7 @@ export const getSettings = async () => {
193193 return {
194194 ...defaultSettings ,
195195 ...data ,
196+ homeOrder : undefined ,
196197 }
197198 } catch {
198199 return defaultSettings
You can’t perform that action at this time.
0 commit comments