Skip to content

Commit 2d5067a

Browse files
fix: lint errors
1 parent 4b27106 commit 2d5067a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Profile/GameList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ export const GameList = ({
104104
if (showCustom) {
105105
setCustomAnalyses(getCustomAnalysesAsWebGames())
106106
}
107-
// Load favorites asynchronously
108-
getFavoritesAsWebGames()
107+
// Load favorites (supports both sync and async implementations)
108+
Promise.resolve(getFavoritesAsWebGames())
109109
.then((favorites) => {
110110
setFavoriteGames(favorites)
111111
setFavoritedGameIds(new Set(favorites.map((f) => f.id)))

0 commit comments

Comments
 (0)