File tree Expand file tree Collapse file tree 2 files changed +9
-29
lines changed
__tests__/components/viewers/__snapshots__
lib/components/viewers/nearby Expand file tree Collapse file tree 2 files changed +9
-29
lines changed Original file line number Diff line number Diff line change @@ -18425,17 +18425,6 @@ exports[`components > viewers > nearby view renders proper scooter dates 1`] = `
18425
18425
className="sc-hJxDiT gGpYuf"
18426
18426
>
18427
18427
<div>
18428
- <FormattedMessage
18429
- id="components.StopViewer.displayStopId"
18430
- values={
18431
- Object {
18432
- "stopId": "40:990003",
18433
- "strong": [Function],
18434
- }
18435
- }
18436
- >
18437
- components.StopViewer.displayStopId
18438
- </FormattedMessage>
18439
18428
<Styled(Connect(Component))
18440
18429
className="stop-header-action"
18441
18430
to="/schedule/40:990003"
@@ -47000,17 +46989,6 @@ exports[`components > viewers > nearby view renders proper scooter dates 1`] = `
47000
46989
className="sc-hJxDiT gGpYuf"
47001
46990
>
47002
46991
<div>
47003
- <FormattedMessage
47004
- id="components.StopViewer.displayStopId"
47005
- values={
47006
- Object {
47007
- "stopId": "40:990004",
47008
- "strong": [Function],
47009
- }
47010
- }
47011
- >
47012
- components.StopViewer.displayStopId
47013
- </FormattedMessage>
47014
46992
<Styled(Connect(Component))
47015
46993
className="stop-header-action"
47016
46994
to="/schedule/40:990004"
Original file line number Diff line number Diff line change @@ -60,13 +60,15 @@ const StopCardHeader = ({
60
60
</ CardHeader >
61
61
< CardBody >
62
62
< div >
63
- < FormattedMessage
64
- id = "components.StopViewer.displayStopId"
65
- values = { {
66
- stopId : stopData . code || stopData . gtfsId ,
67
- strong : Strong
68
- } }
69
- />
63
+ { stopData . code ? (
64
+ < FormattedMessage
65
+ id = "components.StopViewer.displayStopId"
66
+ values = { {
67
+ stopId : stopData . code ,
68
+ strong : Strong
69
+ } }
70
+ />
71
+ ) : null }
70
72
{ onZoomClick ? (
71
73
< button
72
74
className = "link-button"
You can’t perform that action at this time.
0 commit comments