Skip to content

Commit c704135

Browse files
authored
Pluralize stops (#2508)
1 parent 7525922 commit c704135

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

assets/ts/schedule/components/line-diagram/ExpandableBranch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const BranchToggle = (
6161
)}
6262
</div>
6363
<button className="btn btn-link m-schedule-diagram__toggle" type="button">
64-
{stopIds.length} stops
64+
{stopIds.length} {stopIds.length > 1 ? "stops" : "stop"}
6565
</button>
6666
</div>
6767
);

assets/ts/schedule/components/line-diagram/__tests__/__snapshots__/ExpandableBranchTest.tsx.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ exports[`ExpandableBranch renders and matches snapshot 1`] = `
2020
</div>
2121
<button className=\\"btn btn-link m-schedule-diagram__toggle\\" type=\\"button\\">
2222
2
23-
stops
23+
24+
stops
2425
</button>
2526
</div>
2627
<span className=\\"fa c-expandable-block__header-caret\\" dangerouslySetInnerHTML={{...}} />

assets/ts/schedule/components/line-diagram/__tests__/__snapshots__/LineDiagramWithStopsTest.tsx.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ exports[`LineDiagramWithStops renders and matches snapshot 1`] = `
260260
</div>
261261
<button className=\\"btn btn-link m-schedule-diagram__toggle\\" type=\\"button\\">
262262
1
263-
stops
263+
264+
stop
264265
</button>
265266
</div>
266267
<span className=\\"fa c-expandable-block__header-caret\\" dangerouslySetInnerHTML={{...}} />
@@ -358,7 +359,8 @@ exports[`LineDiagramWithStops renders and matches snapshot 1`] = `
358359
</div>
359360
<button className=\\"btn btn-link m-schedule-diagram__toggle\\" type=\\"button\\">
360361
1
361-
stops
362+
363+
stop
362364
</button>
363365
</div>
364366
<span className=\\"fa c-expandable-block__header-caret\\" dangerouslySetInnerHTML={{...}} />

0 commit comments

Comments
 (0)