We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b27106 commit 2d5067aCopy full SHA for 2d5067a
1 file changed
src/components/Profile/GameList.tsx
@@ -104,8 +104,8 @@ export const GameList = ({
104
if (showCustom) {
105
setCustomAnalyses(getCustomAnalysesAsWebGames())
106
}
107
- // Load favorites asynchronously
108
- getFavoritesAsWebGames()
+ // Load favorites (supports both sync and async implementations)
+ Promise.resolve(getFavoritesAsWebGames())
109
.then((favorites) => {
110
setFavoriteGames(favorites)
111
setFavoritedGameIds(new Set(favorites.map((f) => f.id)))
0 commit comments