From 73509d865d9e574363a8375160fbb14a6ff54e6d Mon Sep 17 00:00:00 2001 From: Vijay Prasanna Date: Tue, 4 Apr 2023 13:47:56 +0530 Subject: [PATCH] console: add missing variable in `useDatabaseLatencyCheck` PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8611 GitOrigin-RevId: e582afe1f8ebe3aacc341464ea9b78622ffff85d --- .../features/ConnectDBRedesign/hooks/useDatabaseLatencyCheck.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/hooks/useDatabaseLatencyCheck.ts b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/hooks/useDatabaseLatencyCheck.ts index efe1db0fc3d..93467b06143 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/hooks/useDatabaseLatencyCheck.ts +++ b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/hooks/useDatabaseLatencyCheck.ts @@ -45,7 +45,7 @@ async function poll( let iterCount = 0; let result = await fn(); while (fnCondition(result) && iterCount < maxPollNumber) { - await wait(ms); + await wait(waitMs); result = await fn(); iterCount++; }