Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dviskovic committed Mar 28, 2023
1 parent 5b2bf02 commit 7202eb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pios-app-ui/src/views/component-search/ComponentSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const ComponentSearch = () => {

useEffect(() => {
void fetchComponents();
void fetchWishlist();
if (auth.auth.authenticated) {
void fetchWishlist();
}
}, [debouncedComponentSearch, componentType, priceRangeDebounced]);

const handleRequestFailure = (error: AxiosError<BasicResponse>) => {
Expand Down

0 comments on commit 7202eb0

Please sign in to comment.