From fdc324d4458cfbc1d54f946b71b245a29a463d8d Mon Sep 17 00:00:00 2001 From: Barkley Trimsworth Date: Tue, 31 Mar 2026 17:29:57 +0000 Subject: [PATCH] fix(portal): remove stray } in logo data URL and restore Dashboard redirect - CustomerPortal.tsx: fix stray } in base64 data URL src attribute - Dashboard.tsx: restore Navigate to /login for !sessionId (defense-in-depth) The stray } was introduced in commit fa92a65 which also reverted the Dashboard redirect. This commit restores both fixes. Co-Authored-By: Paperclip --- apps/web/src/portal/CustomerPortal.tsx | 2 +- apps/web/src/portal/sections/Dashboard.tsx | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/web/src/portal/CustomerPortal.tsx b/apps/web/src/portal/CustomerPortal.tsx index d725a2d..2a5d424 100644 --- a/apps/web/src/portal/CustomerPortal.tsx +++ b/apps/web/src/portal/CustomerPortal.tsx @@ -260,7 +260,7 @@ export function CustomerPortal() {
{branding.logoBase64 && branding.logoMimeType ? ( diff --git a/apps/web/src/portal/sections/Dashboard.tsx b/apps/web/src/portal/sections/Dashboard.tsx index 43abe5c..f252e8a 100644 --- a/apps/web/src/portal/sections/Dashboard.tsx +++ b/apps/web/src/portal/sections/Dashboard.tsx @@ -1,4 +1,5 @@ import { useState, useEffect } from "react"; +import { Navigate } from "react-router-dom"; import { Calendar, Clock, PawPrint, CreditCard, Star, ChevronRight, AlertTriangle } from "lucide-react"; interface DashboardProps { @@ -183,13 +184,7 @@ export function Dashboard({ } if (!sessionId) { - return ( -
-
-

Please sign in to view your dashboard.

-
-
- ); + return ; } const upcomingAppointments = getUpcomingAppointments();