Skip to content

Commit

Permalink
Fixed search page showing loading spinner when nothing is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Jan 12, 2024
1 parent 912c856 commit 14205b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions screens/FindScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ const FindScreen = ({navigation}) => {
console.log('Empty search')
setNoResults(false)
setChangeSectionsOne([])
setLoadingOne(false)
}
}

Expand Down Expand Up @@ -301,6 +302,7 @@ const FindScreen = ({navigation}) => {
} else {
console.log('Empty category search')
dispatchCategories({type: 'resetCategories'})
dispatchCategories({type: 'stopLoad'})
}
}
}
Expand Down

0 comments on commit 14205b5

Please sign in to comment.