Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

feat: onsubmit is updated (#1628)

Palash Gupta57f4f098f779
diff --git a/frontend/src/container/Login/index.tsx b/frontend/src/container/Login/index.tsx
index b08ff0f353..0fd6673844 100644
--- a/frontend/src/container/Login/index.tsx
+++ b/frontend/src/container/Login/index.tsx
@@ -117,6 +117,12 @@ function Login({
try {
event.preventDefault();
event.persist();
+
+ if (!precheckComplete) {
+ onNextHandler();
+ return;
+ }
+
setIsLoading(true);
const response = await loginApi({
@@ -171,6 +177,7 @@ function Login({
};
const { sso, canSelfRegister } = precheckResult;
+
return (
<FormWrapper>
<FormContainer onSubmit={onSubmitHandler}>