Browse Source

r --> resolve

Shun Miyazawa 4 năm trước cách đây
mục cha
commit
e8dae5d623
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      packages/app/src/stores/use-static-swr.tsx

+ 2 - 2
packages/app/src/stores/use-static-swr.tsx

@@ -48,10 +48,10 @@ export const useTermNumberManager = (key: Key) : SWRResponse<number, Error> & IT
         return;
       }
 
-      await new Promise((r) => {
+      await new Promise((resolve) => {
         setTimeout(async() => {
           await swrResult.mutate(currentNum + 1);
-          r(null);
+          resolve(null);
         }, ADVANCE_DELAY_MS);
       });
     },