{status === 'loading' && (
<>
-
Confirming your email address...
+
{t('email_confirmation_loading')}
>
)}
{status === 'success' && (
<>
-
✅ Email Confirmed
+
{t('email_confirmation_success')}
-
- Thank you! Your email address has been successfully confirmed.
- You can now return to the TaskNote app and log in.
-
+
{t('email_confirmation_success_text')}
- Go to Login
+ {t('email_confirmation_btn')}
>
)}
@@ -78,7 +83,7 @@ const EmailConfirmation: React.FC = () => {
{status === 'error' && (
<>
❌ Oops!
-
+
{ errorMessage }
>
diff --git a/client/src/views/Home/index.tsx b/client/src/views/Home/index.tsx
index 36d82f0..f624392 100644
--- a/client/src/views/Home/index.tsx
+++ b/client/src/views/Home/index.tsx
@@ -264,7 +264,7 @@ function Home(): React.ReactNode {
useEffect(() => {
handleDefaultLang();
- setName(user?.name ? user?.name : 'User');
+ setName(user?.name ?? 'User');
loadTags();
loadAllTasks();
loadAllNotes();
@@ -275,10 +275,12 @@ function Home(): React.ReactNode {
) => filterTasksAndNotes(e.target.value, selectedOption)}
/>
@@ -309,7 +311,7 @@ function Home(): React.ReactNode {
{t('landing_btn_register')}