Skip to content

Commit 48ad017

Browse files
feat: handle edge-cases with favourite game logic
1 parent 50b5575 commit 48ad017

5 files changed

Lines changed: 390 additions & 113 deletions

File tree

src/api/analysis/analysis.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export const getAnalysisGameList = async (
8080
type = 'play',
8181
page = 1,
8282
lichessId?: string,
83-
favoritesOnly?: boolean,
8483
) => {
8584
const url = buildUrl(`analysis/user/list/${type}/${page}`)
8685
const searchParams = new URLSearchParams()
@@ -89,10 +88,6 @@ export const getAnalysisGameList = async (
8988
searchParams.append('lichess_id', lichessId)
9089
}
9190

92-
if (favoritesOnly !== undefined) {
93-
searchParams.append('favorites_only', String(favoritesOnly))
94-
}
95-
9691
const fullUrl = searchParams.toString()
9792
? `${url}?${searchParams.toString()}`
9893
: url

0 commit comments

Comments
 (0)