diff --git a/frontend/src/components/IncidentsView.tsx b/frontend/src/components/IncidentsView.tsx index 83eb2b1..8674a16 100644 --- a/frontend/src/components/IncidentsView.tsx +++ b/frontend/src/components/IncidentsView.tsx @@ -106,6 +106,12 @@ export function IncidentsView() { return code.toUpperCase().replace(/./g, char => String.fromCodePoint(char.charCodeAt(0) + 127397)); }; + // Nettoyer une adresse IP (enlever ::ffff: prefix) + const cleanIP = (address: string): string => { + if (!address) return ''; + return address.replace(/^::ffff:/i, ''); + }; + if (loading) { return (