Skip to content

Scheduling infrastructure for absolutely everyone.

fix: flash of untranslated title in `settings/my-account/profile` (#6163)

Nafees Nazikfa9d72fc0a6d
diff --git a/apps/web/pages/settings/my-account/profile.tsx b/apps/web/pages/settings/my-account/profile.tsx
index 4585c343512..33764324e62 100644
--- a/apps/web/pages/settings/my-account/profile.tsx
+++ b/apps/web/pages/settings/my-account/profile.tsx
@@ -181,7 +181,9 @@ const ProfileView = () => {
};
if (isLoading || !user || isLoadingAvatar || !avatar)
- return <SkeletonLoader title={t("profile")} description={t("profile_description")} />;
+ return (
+ <SkeletonLoader title={t("profile")} description={t("profile_description", { appName: APP_NAME })} />
+ );
const defaultValues = {
username: user.username || "",
diff --git a/packages/ui/v2/core/Meta.tsx b/packages/ui/v2/core/Meta.tsx
index 2f143b8384e..e8688022052 100644
--- a/packages/ui/v2/core/Meta.tsx
+++ b/packages/ui/v2/core/Meta.tsx
@@ -54,11 +54,10 @@ export default function Meta({ title, description, backButton, CTA }: MetaType)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [title, description, backButton, CTA]);
+ const title_ = `${title} | ${APP_NAME}`;
return (
<Head>
- <title>
- {title} | {APP_NAME}
- </title>
+ <title>{title_}</title>
<meta name="description" content={description} />
</Head>
);