File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,8 +95,6 @@ const VideoCard: React.FC<{
9595 } ;
9696
9797 const handleThumbnailError = ( failedUrl : string ) => {
98- console . log ( `Failed to load thumbnail: ${ failedUrl } ` ) ;
99-
10098 if ( failedUrl . includes ( "maxresdefault" ) ) {
10199 tryThumbnailUrl ( `https://i.ytimg.com/vi/${ videoId } /hqdefault.jpg` ) ;
102100 } else if ( failedUrl . includes ( "hqdefault" ) ) {
@@ -111,13 +109,11 @@ const VideoCard: React.FC<{
111109 useEffect ( ( ) => {
112110 if ( ! videoId ) return ;
113111
114- console . log ( `Loading thumbnails for video ID: ${ videoId } ` ) ;
115112 tryThumbnailUrl ( `https://i.ytimg.com/vi/${ videoId } /maxresdefault.jpg` ) ;
116113
117114 const firstFrameUrl = `https://img.youtube.com/vi/${ videoId } /0.jpg` ;
118115 setTimeout ( ( ) => {
119116 if ( ! thumbnailUrl ) {
120- console . log ( "Trying first frame as fallback" ) ;
121117 tryThumbnailUrl ( firstFrameUrl ) ;
122118 }
123119 } , 1000 ) ;
@@ -167,8 +163,6 @@ const VideoCard: React.FC<{
167163 style = { { objectFit : "cover" } }
168164 loading = "lazy"
169165 onError = { ( e ) => {
170- const img = e . target as HTMLImageElement ;
171- console . log ( "Image error:" , img . src ) ;
172166 setThumbnailUrl ( "" ) ;
173167 } }
174168 />
Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ export default function MerchPage(): ReactNode {
113113 async function fetchShopifyProducts ( ) {
114114 try {
115115 if ( isShopifyConfigured ( ) ) {
116- console . log ( "Fetching products from Shopify..." ) ;
117116 const shopifyProducts = await getProducts ( 20 ) ;
118117
119118 if ( shopifyProducts && shopifyProducts . length > 0 ) {
@@ -138,19 +137,13 @@ export default function MerchPage(): ReactNode {
138137 } ;
139138 } ) ;
140139
141- console . log (
142- "Loaded products from Shopify:" ,
143- formattedProducts . length ,
144- ) ;
145140 setProducts ( formattedProducts ) ;
146141 setFilteredProducts ( formattedProducts ) ;
147142 } else {
148- console . log ( "No products found in Shopify, using sample products" ) ;
149143 setProducts ( sampleProducts ) ;
150144 setFilteredProducts ( sampleProducts ) ;
151145 }
152146 } else {
153- console . log ( "Shopify not configured, using sample products" ) ;
154147 setProducts ( sampleProducts ) ;
155148 setFilteredProducts ( sampleProducts ) ;
156149 }
You can’t perform that action at this time.
0 commit comments