Skip to content

Commit d2e91ca

Browse files
committed
feat: remove wait time text if trip is staySeated
1 parent 15a22d9 commit d2e91ca

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/page-modules/assistant/details/trip-section/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ export default function TripSection({
244244
/>
245245
)}
246246

247-
{!!leg.interchangeTo?.staySeated && (
248-
<WaitSection legWaitDetails={legWaitDetails} />
249-
)}
247+
<WaitSection legWaitDetails={legWaitDetails} />
250248
</div>
251249
);
252250
}

src/page-modules/assistant/details/trip-section/interchange-section.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@ function useInterchangeTextTranslation({
6161
: text;
6262

6363
if (publicCode && staySeated) {
64-
return appendWaitTime(
65-
t(
66-
PageText.Assistant.details.tripSection.lineChangeStaySeated(
67-
publicCode,
68-
interchangeDetails.publicCode,
69-
),
64+
return t(
65+
PageText.Assistant.details.tripSection.lineChangeStaySeated(
66+
publicCode,
67+
interchangeDetails.publicCode,
7068
),
7169
);
7270
}

0 commit comments

Comments
 (0)