Explorar el Código

r --> resolve

Shun Miyazawa hace 4 años
padre
commit
e8dae5d623
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
       });
     },