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++; }