From 61a63b57a01e768e640f29e53e914770c188067d Mon Sep 17 00:00:00 2001 From: Melinda T Date: Wed, 26 Jun 2024 17:47:56 -0700 Subject: [PATCH] created message that appears if rates are not found, links to allconnect sight with postcode. --- src/vis/MeasurementMap.tsx | 3 +++ 1 file changed, 3 insertions(+) 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" + "