From 1ad9d9860b408bfada3abb2356dd82188e29b96b Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 30 Aug 2025 14:10:12 +0000 Subject: [PATCH] Add debug logging to the video modal component Add a useEffect hook to the BunnyVideoModal component to log the modal's open state and the current video title for debugging purposes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DVZN4Rp --- client/src/components/bunny-video-modal.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/components/bunny-video-modal.tsx b/client/src/components/bunny-video-modal.tsx index 7e3dec4..e7fa984 100644 --- a/client/src/components/bunny-video-modal.tsx +++ b/client/src/components/bunny-video-modal.tsx @@ -53,6 +53,11 @@ function formatDate(date: Date | string): string { export default function BunnyVideoModal({ video, isOpen, onClose, onEdit, videos = [], onVideoChange }: BunnyVideoModalProps) { const [showShareMenu, setShowShareMenu] = useState(false); + + // Debug log + useEffect(() => { + console.log('Modal state:', { isOpen, video: video?.title || 'none' }); + }, [isOpen, video]); // Navigation functions const getCurrentVideoIndex = () => {