File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,17 @@ const CallAgencyLeg = ({ leg, ...props }) => {
22
22
defaultMessage = "Only on demand: {routeName}, which needs to be booked in advance."
23
23
/>
24
24
< div className = "itinerary-warning-agency-container" />
25
- < div className = "call-button" >
26
- < a href = { `tel:${ leg . route . agency . phone } ` } >
27
- < FormattedMessage
28
- id = "call"
29
- defaultMessage = "Call"
30
- values = { { number : leg . route . agency . phone } }
31
- />
32
- </ a >
33
- </ div >
25
+ { leg . route . agency . phone && (
26
+ < div className = "call-button" >
27
+ < a href = { `tel:${ leg . route . agency . phone } ` } >
28
+ < FormattedMessage
29
+ id = "call"
30
+ defaultMessage = "Call"
31
+ values = { { number : leg . route . agency . phone } }
32
+ />
33
+ </ a >
34
+ </ div >
35
+ ) }
34
36
</ span >
35
37
</ div >
36
38
</ TransitLeg >
You can’t perform that action at this time.
0 commit comments