Closed paulschreiber closed 1 month ago
When a user taps on a location outside the US, the elevation API returns a string:
Invalid or missing input parameters.
Our elevationServices.ts file calls getElevation(), which handles that and correctly returns undefined.
elevationServices.ts
getElevation()
undefined
The renderElevationfile correctly handles undefined and renders "unknown".
renderElevation
However, somewhere in between (perhaps in elevationSlice?), the unknown value gets lost and doesn't get passed up the client layer.
elevationSlice
@CourtneyLee333 I tested this by tapping in Africa. Field returns "unknown" (lowercase) so it passes functionally - should we stylize the word?
No, I think it's fine the way it is.
Description
When a user taps on a location outside the US, the elevation API returns a string:
Our
elevationServices.ts
file callsgetElevation()
, which handles that and correctly returnsundefined
.The
renderElevation
file correctly handlesundefined
and renders "unknown".However, somewhere in between (perhaps in
elevationSlice
?), the unknown value gets lost and doesn't get passed up the client layer.