Skip to content

Commit 3b06d6f

Browse files
committed
Add removeHyphens() to stationName in <TopBar/> compnent
Relates #125
1 parent 28a0f22 commit 3b06d6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/TopBar/TopBar.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export default class TopBar extends React.Component {
1414
<React.Fragment>
1515
<div id="topbar-container">
1616
<BackButton link={this.props.backLink} />
17-
<h3 id="topbar-title">{this.props.stationName}</h3>
17+
<h3 id="topbar-title">
18+
{this.props.stationName && removeHyphens(this.props.stationName)}
19+
</h3>
1820
{this.props.timer && (
1921
<h3 id="topbar-timer">{timerFormat(this.props.time)}</h3>
2022
)}

0 commit comments

Comments
 (0)