File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ const MATCHES_URL = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vR4qBk403Ka
99interface TeamRow {
1010 Nome : string ;
1111 Sigla : string ;
12- Logo : string ;
1312 Vitorias : string ;
1413 Derrotas : string ;
1514 [ key : string ] : string ;
@@ -62,29 +61,16 @@ export const fetchTournamentData = async () => {
6261 }
6362 }
6463
65- let logoUrl = row . Logo ;
66- let localLogoFound = false ;
64+ let logoUrl = "" ;
6765
68- // 1. Try to find local logo by Sigla
66+ // Try to find local logo by Sigla
6967 if ( row . Sigla ) {
7068 const targetSigla = row . Sigla . trim ( ) . toLowerCase ( ) ;
7169 for ( const path in teamLogos ) {
7270 const fileName = path . split ( '/' ) . pop ( ) ;
7371 const nameWithoutExt = fileName ?. substring ( 0 , fileName . lastIndexOf ( '.' ) ) ;
7472
7573 if ( nameWithoutExt ?. toLowerCase ( ) === targetSigla ) {
76- logoUrl = ( teamLogos [ path ] as any ) . default ;
77- localLogoFound = true ;
78- break ;
79- }
80- }
81- }
82-
83- // 2. If not found by Sigla, try to use row.Logo as a filename match (legacy/fallback)
84- if ( ! localLogoFound && logoUrl && ! logoUrl . startsWith ( 'http' ) ) {
85- const cleanName = logoUrl . split ( '/' ) . pop ( ) ;
86- for ( const path in teamLogos ) {
87- if ( path . includes ( cleanName ! ) ) {
8874 logoUrl = ( teamLogos [ path ] as any ) . default ;
8975 break ;
9076 }
You can’t perform that action at this time.
0 commit comments