Skip to content

Commit

Permalink
fix(i18n): add default empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Grraahaam committed Jan 11, 2023
1 parent d7b0462 commit 0b281a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/components/signup/EnterEmailStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 0b281a0

Please sign in to comment.