diff --git a/src/layouts/PublicLayout.tsx b/src/layouts/PublicLayout.tsx index 1df5de9..6b78a19 100644 --- a/src/layouts/PublicLayout.tsx +++ b/src/layouts/PublicLayout.tsx @@ -343,7 +343,12 @@ export function PublicLayout() { to="/" className="flex h-8 shrink-0 items-center gap-2 rounded-sm text-[20px] font-black leading-5 tracking-tight text-ark-gold outline-none focus-visible:ring-2 focus-visible:ring-ark-gold/80 focus-visible:ring-offset-2 focus-visible:ring-offset-[#08070c]" aria-label={t("brand")} - onClick={(e) => { if (isHome) { e.preventDefault(); window.scrollTo({ top: 0, behavior: "smooth" }); } }} + onClick={(e) => { + if (isHome) { + e.preventDefault(); + window.scrollTo({ top: 0, behavior: "smooth" }); + } + }} > {t("brand")} @@ -413,7 +418,12 @@ export function PublicLayout() { { if (isHome) { e.preventDefault(); window.scrollTo({ top: 0, behavior: "smooth" }); } }} + onClick={(e) => { + if (isHome) { + e.preventDefault(); + window.scrollTo({ top: 0, behavior: "smooth" }); + } + }} >