Fix 1 Test 1534
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| Before Width: | Height: | Size: 821 B After Width: | Height: | Size: 821 B | 
| @@ -277,7 +277,7 @@ export const MapaNacional = ({ eleccionId, categoriaId, nivel, nombreAmbito, nom | ||||
|             <Geographies geography={geoDataNacional}> | ||||
|               {({ geographies }: { geographies: AmbitoGeography[] }) => geographies.map((geo) => { | ||||
|                 const nombreNormalizado = normalizarTexto(geo.properties.nombre); | ||||
|                 const esCABA = nombreNormalizado === 'CIUDAD AUTONOMA DE BUENOS AIRES'; | ||||
|                 const esCABA = nombreNormalizado === 'CAPITAL FEDERAL'; | ||||
|                 const resultado = resultadosNacionalesPorNombre.get(nombreNormalizado); | ||||
|                 const esProvinciaActiva = provinciaDistritoId && resultado?.ambitoId === provinciaDistritoId; | ||||
|  | ||||
| @@ -320,7 +320,7 @@ export const MapaNacional = ({ eleccionId, categoriaId, nivel, nombreAmbito, nom | ||||
|       {nivel === 'pais' && ( | ||||
|         <div id="caba-lupa-anchor" className={styles.cabaMagnifierContainer} style={lupaStyle} ref={lupaRef}> | ||||
|           {(() => { | ||||
|             const resultadoCABA = resultadosNacionalesPorNombre.get("CIUDAD AUTONOMA DE BUENOS AIRES"); | ||||
|             const resultadoCABA = resultadosNacionalesPorNombre.get("CAPITAL FEDERAL"); | ||||
|             const fillColor = resultadoCABA?.colorGanador || DEFAULT_MAP_COLOR; | ||||
|             const handleClick = () => { | ||||
|               if (resultadoCABA) { | ||||
|   | ||||
| @@ -58,7 +58,7 @@ export const MapaProvincial = ({ eleccionId, categoriaId, distritoId, nombreProv | ||||
|   }, [nivel, nombreMunicipioSeleccionado, geoData, onCalculatedCenter]); | ||||
|  | ||||
|   const resultadosPorNombre = new Map<string, ResultadoMapaDto>(mapaData.map(d => [normalizarTexto(d.ambitoNombre), d])); | ||||
|   const esCABA = normalizarTexto(nombreProvincia) === "CIUDAD AUTONOMA DE BUENOS AIRES"; | ||||
|   const esCABA = normalizarTexto(nombreProvincia) === "CAPITAL FEDERAL"; | ||||
|  | ||||
|   return ( | ||||
|     <Geographies geography={geoData}> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user