Skip to content

Commit

Permalink
ON-40638 # fix rejections
Browse files Browse the repository at this point in the history
  • Loading branch information
divporter committed May 24, 2024
1 parent 27bf9a1 commit 314da8f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/form-elements/FormElementGoogleAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ function FormElementGoogleAddress({
}
case google.maps.places.PlacesServiceStatus.REQUEST_DENIED: {
reject(
'Google Maps API key has not been configured correctly',
new OneBlinkAppsError(
'Google Maps API key has not been configured correctly',
),
)
break
}
Expand All @@ -79,7 +81,9 @@ function FormElementGoogleAddress({
}
default: {
reject(
'An unknown error has occurred. Please contact support if the problem persists.',
new OneBlinkAppsError(
'An unknown error has occurred. Please contact support if the problem persists.',
),
)
}
}
Expand Down Expand Up @@ -156,7 +160,9 @@ function FormElementGoogleAddress({
!place
) {
reject(
`Could not find address details for place with id: ${placeId}`,
new OneBlinkAppsError(
`Could not find address details for place with id: ${placeId}`,
),
)
return
}
Expand Down

0 comments on commit 314da8f

Please sign in to comment.