Skip to content

Commit

Permalink
refactor(favorite): rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 15, 2024
1 parent 644a239 commit c920ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/favorite/ui/FavoritePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const FavoritePage = () => {
const [instruments, setInstruments] = useState<Instruments>([]);

useEffect(() => {
const kek = async () => {
const fetchFavoriteInstruments = async () => {
const favoriteInstrumentIds = await fetchFavoriteInstrumentIdsList()
const filter = {
instrumentIds: favoriteInstrumentIds,
Expand All @@ -20,7 +20,7 @@ export const FavoritePage = () => {
return instruments;
}

kek().then(instruments => setInstruments(instruments));
fetchFavoriteInstruments().then(instruments => setInstruments(instruments));
}, []);

return (
Expand Down

0 comments on commit c920ae3

Please sign in to comment.