Skip to content

Commit

Permalink
Update usePersistedQueries.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgonzalez authored Oct 30, 2023
1 parent 6afaab4 commit 4c2bcc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions react-app/src/api/usePersistedQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function useAdventuresByActivity(adventureActivity, params = {}) {
// Call the internal fetchData() as per React best practices
fetchData();

}, [adventureActivity, params]);
}, [adventureActivity]);

// Returns the adventures and errors
return { adventures, errors };
Expand Down Expand Up @@ -143,7 +143,7 @@ export function useAdventureBySlug(slugName, params = {}) {
// Call the internal fetchData() as per React best practices
fetchData();

}, [slugName, params]);
}, [slugName]);

return { adventure, references, errors };
}
}

0 comments on commit 4c2bcc0

Please sign in to comment.