Skip to content

Commit

Permalink
refactor(favorite): minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-kirill committed Aug 15, 2024
1 parent c920ae3 commit 3104869
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions client/src/pages/favorite/ui/FavoritePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const FavoritePage = () => {
const filter = {
instrumentIds: favoriteInstrumentIds,
} as unknown as Filters;
const instruments = await getInstrumentsByCriteria(filter)
return instruments;
return await getInstrumentsByCriteria(filter);
}

fetchFavoriteInstruments().then(instruments => setInstruments(instruments));
Expand Down
2 changes: 1 addition & 1 deletion client/src/shared/api/instruments-by-criteria.list.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from "axios";
import { API_INSTRUMENTS, SERVER_URL } from "shared/config";
import { Filters } from "widgets/catalogue-filter";
import { Instrument, Instruments } from "domain/model/instrument";
import { Instruments } from "domain/model/instrument";

export const getInstrumentsByCriteria = async (
filters: Filters,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,4 @@ class GetInstrumentsByCriteriaEndpoint(
val instrumentIds: Set<Long>?,
)

data class Page(
val size: String,
val number: String,
)
}

0 comments on commit 3104869

Please sign in to comment.