diff --git a/src/vis/MeasurementMap.tsx b/src/vis/MeasurementMap.tsx index 0ed00df..26e5917 100644 --- a/src/vis/MeasurementMap.tsx +++ b/src/vis/MeasurementMap.tsx @@ -97,6 +97,9 @@ function searchEventHandler(result: any): void { function organizePopup(apiText: any, postcode: any, lon: any, lat: any): string{ let dict = JSON.parse(apiText); console.log(dict); + if(Object.keys(dict).length == 0) { + return "No prices could be found." + "Visit allconnect.com" + " to see provider rates in your area."; + } let returnString = "" + "" + "" + ""
" + "Provider" + "