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
+1 -1
View File
@@ -47,7 +47,7 @@ export default function DashboardPage() {
useEffect(() => {
let cancelled = false
;(async () => {
void (async () => {
try {
const orders = await Promise.resolve(listOrders())
if (cancelled) return