Skip to content

Commit de8a3c7

Browse files
openscriptCopilot
andauthored
chore: apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 17f2ba0 commit de8a3c7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/frontend/src/routes/__root.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ const messages = i18n("RootRoute", {
3434
title: "Home",
3535
});
3636

37-
const logos = JSON.parse(C.env.logos);
37+
let logos;
38+
try {
39+
logos = JSON.parse(C.env.logos);
40+
} catch (error) {
41+
console.error("Failed to parse C.env.logos:", error);
42+
logos = []; // Default fallback value
43+
}
3844

3945
function Root() {
4046
const n = useNavigate();

0 commit comments

Comments
 (0)