Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(i18n): add default empty string

Grraahaam0b281a02d00d
diff --git a/frontend/components/signup/EnterEmailStep.tsx b/frontend/components/signup/EnterEmailStep.tsx
index 85598a8a20..1b9177580f 100644
--- a/frontend/components/signup/EnterEmailStep.tsx
+++ b/frontend/components/signup/EnterEmailStep.tsx
@@ -63,7 +63,7 @@ export default function EnterEmailStep({ email, setEmail, incrementStep }: Downl
</p>
<div className="flex items-center justify-center w-5/6 md:w-full m-auto md:p-2 rounded-lg max-h-24 mt-4">
<InputField
- label={t("common:email")}
+ label={t("common:email") ?? ""}
onChangeHandler={setEmail}
type="email"
value={email}
@@ -79,7 +79,7 @@ export default function EnterEmailStep({ email, setEmail, incrementStep }: Downl
{t("signup:step1-privacy")}
</p>
<div className="text-l mt-6 m-2 md:m-8 px-8 py-1 text-lg">
- <Button text={t("signup:step1-submit")} type="submit" onButtonPressed={emailCheck} size="lg" />
+ <Button text={t("signup:step1-submit") ?? ""} type="submit" onButtonPressed={emailCheck} size="lg" />
</div>
</div>
</div>
diff --git a/frontend/pages/login.tsx b/frontend/pages/login.tsx
index 69126e6af7..4582710666 100644
--- a/frontend/pages/login.tsx
+++ b/frontend/pages/login.tsx
@@ -125,7 +125,7 @@ export default function Login() {
</div>
</div>
{!isLoading && errorLogin && (
- <Error text={t("login:error-login")} />
+ <Error text={t("login:error-login") ?? ""} />
)}
<div className="flex flex-col items-center justify-center w-full md:p-2 max-h-20 max-w-md mt-4 mx-auto text-sm">
<div className="text-l mt-6 m-8 px-8 py-3 text-lg">