From ed45265793d7901cf357c13f5919f773b047ea77 Mon Sep 17 00:00:00 2001 From: justin Date: Sat, 30 May 2026 20:23:10 -0500 Subject: [PATCH] add null guard in renderResults to prevent 'cannot read length' error --- site/public/tools/dot-compliance-check/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/public/tools/dot-compliance-check/index.html b/site/public/tools/dot-compliance-check/index.html index caec281..d1e9436 100644 --- a/site/public/tools/dot-compliance-check/index.html +++ b/site/public/tools/dot-compliance-check/index.html @@ -253,6 +253,10 @@ Send reset link var labelColor = { green: "text-green-800", yellow: "text-yellow-800", red: "text-red-800", unknown: "text-gray-700" }; function renderResults(data) { + if (!data || !data.legal_name) { + showError("No data returned. The carrier may not exist or the lookup timed out."); + return; + } var html = ''; // Entity header card