add null guard in renderResults to prevent 'cannot read length' error
This commit is contained in:
parent
77c3e8e3e3
commit
ed45265793
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue