Skip to content

Commit

Permalink
replace all added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Oct 12, 2024
1 parent 1a321a9 commit 37fa4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/branchlocator/branchlocator-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ 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;
}

// 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
Expand Down

0 comments on commit 37fa4b8

Please sign in to comment.