From 37fa4b8197e9585610963438ba03fa49000ea3a6 Mon Sep 17 00:00:00 2001 From: Smit Shah Date: Sat, 12 Oct 2024 13:26:32 +0530 Subject: [PATCH] replace all added --- blocks/branchlocator/branchlocator-api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/branchlocator/branchlocator-api.js b/blocks/branchlocator/branchlocator-api.js index be2af655b6..4f65c1f4b0 100644 --- a/blocks/branchlocator/branchlocator-api.js +++ b/blocks/branchlocator/branchlocator-api.js @@ -29,7 +29,7 @@ export async function searchBranchByURL() { // State Check if (splitSearch[4]) { setLocationObj.geoInfo.state = splitSearch[4]; - setLocationObj.geoInfo.state = setLocationObj.geoInfo.state.charAt(0).toUpperCase() + setLocationObj.geoInfo.state.slice(1).replace('-', ' '); + setLocationObj.geoInfo.state = setLocationObj.geoInfo.state.charAt(0).toUpperCase() + setLocationObj.geoInfo.state.slice(1).replaceAll('-', ' '); } else { return false; } @@ -37,7 +37,7 @@ export async function searchBranchByURL() { // City Check if (splitSearch[5]) { setLocationObj.geoInfo.city = splitSearch[5]; - setLocationObj.geoInfo.city = setLocationObj.geoInfo.city.charAt(0).toUpperCase() + setLocationObj.geoInfo.city.slice(1).replace('-', ' '); + setLocationObj.geoInfo.city = setLocationObj.geoInfo.city.charAt(0).toUpperCase() + setLocationObj.geoInfo.city.slice(1).replaceAll('-', ' '); } /* // Location Code Check