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 <noreply@paperclip.ing>
This commit is contained in:
Barkley Trimsworth
2026-03-31 17:29:57 +00:00
parent fa92a65a35
commit fdc324d445
2 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ export function CustomerPortal() {
<div className="hidden md:flex items-center gap-3 px-6 py-5 border-b border-stone-100"> <div className="hidden md:flex items-center gap-3 px-6 py-5 border-b border-stone-100">
{branding.logoBase64 && branding.logoMimeType ? ( {branding.logoBase64 && branding.logoMimeType ? (
<img <img
src={`data:${branding.logoMimeType};base64,${branding.logoBase64}}`} src={`data:${branding.logoMimeType};base64,${branding.logoBase64}`}
alt="" alt=""
className="w-10 h-10 rounded-xl object-contain" className="w-10 h-10 rounded-xl object-contain"
/> />
+2 -7
View File
@@ -1,4 +1,5 @@
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { Navigate } from "react-router-dom";
import { Calendar, Clock, PawPrint, CreditCard, Star, ChevronRight, AlertTriangle } from "lucide-react"; import { Calendar, Clock, PawPrint, CreditCard, Star, ChevronRight, AlertTriangle } from "lucide-react";
interface DashboardProps { interface DashboardProps {
@@ -183,13 +184,7 @@ export function Dashboard({
} }
if (!sessionId) { if (!sessionId) {
return ( return <Navigate to="/login" replace />;
<div className="space-y-6">
<div className="bg-stone-100 rounded-2xl p-5 text-center">
<p className="text-stone-600">Please sign in to view your dashboard.</p>
</div>
</div>
);
} }
const upcomingAppointments = getUpcomingAppointments(); const upcomingAppointments = getUpcomingAppointments();