fix(lint): resolve floating promise warnings

This commit is contained in:
zetaloop
2026-03-01 22:53:48 +08:00
parent 05c5d05148
commit aae83bce44
9 changed files with 59 additions and 45 deletions
-2
View File
@@ -24,8 +24,6 @@ export default function CommunityPage() {
useEffect(() => {
let cancelled = false
setPostsLoading(true)
Promise.all([listGames(), listPlayers(), Promise.resolve(listOrders()), listPosts()])
.then(([gamesItems, playersItems, ordersItems, postsItems]) => {
if (cancelled) return