diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index 7eb3c9cd..64d42471 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -68,8 +68,11 @@ export function Header() { { try { - const res = await fetch(DEFAULT_LOGO_URL); - const svg = await res.text(); + const response = await fetch(DEFAULT_LOGO_URL); + if (!response.ok) { + throw new Error(`Failed to fetch SVG: ${response.status}`); + } + const svg = await response.text(); await navigator.clipboard.writeText(svg); toast.success("SVG copied to clipboard"); } catch {