remove TCP RTT for UDP HTTP/3 connections
diff --git a/src/app/routes/connection.tsx b/src/app/routes/connection.tsx
index 898196a..cc5ad43 100644
--- a/src/app/routes/connection.tsx
+++ b/src/app/routes/connection.tsx
@@ -20,20 +20,22 @@
<table>
<tbody>
<tr>
- <td className="p-4" colSpan={1}>
+ <td className="p-4" colSpan={data.clientTcpRtt !== undefined ? 1 : 2}>
<Widget name="Cloudflare colocation" icon="cloud">
<p>
{data.colo}
</p>
</Widget>
</td>
- <td className="p-4" colSpan={1}>
- <Widget name="TCP round-trip time (RTT)" icon="network_ping">
- <p>
- <code className="font-medium text-type-0">{data.clientTcpRtt === 0 ? "0" : data.clientTcpRtt}</code> ms
- </p>
- </Widget>
- </td>
+ {data.clientTcpRtt !== undefined ? (
+ <td className="p-4" colSpan={1}>
+ <Widget name="TCP round-trip time (RTT)" icon="network_ping">
+ <p>
+ <code className="font-medium text-type-0">{data.clientTcpRtt}</code> ms
+ </p>
+ </Widget>
+ </td>
+ ) : null}
</tr>
<tr>
<td className="p-4" colSpan={1}>