fix(lint): resolve floating promise warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user