add null guard in renderResults to prevent 'cannot read length' error

This commit is contained in:
justin 2026-05-30 20:23:10 -05:00
parent 77c3e8e3e3
commit ed45265793

View file

@ -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