fix(i18n): add default empty string

This commit is contained in:
Grraahaam
2023-01-11 01:54:16 +01:00
parent d7b046236b
commit 0b281a02d0
2 changed files with 3 additions and 3 deletions
@@ -63,7 +63,7 @@ export default function EnterEmailStep({ email, setEmail, incrementStep }: Downl
</p> </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"> <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 <InputField
label={t("common:email")} label={t("common:email") ?? ""}
onChangeHandler={setEmail} onChangeHandler={setEmail}
type="email" type="email"
value={email} value={email}
@@ -79,7 +79,7 @@ export default function EnterEmailStep({ email, setEmail, incrementStep }: Downl
{t("signup:step1-privacy")} {t("signup:step1-privacy")}
</p> </p>
<div className="text-l mt-6 m-2 md:m-8 px-8 py-1 text-lg"> <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> </div>
</div> </div>
+1 -1
View File
@@ -125,7 +125,7 @@ export default function Login() {
</div> </div>
</div> </div>
{!isLoading && errorLogin && ( {!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="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"> <div className="text-l mt-6 m-8 px-8 py-3 text-lg">