Enrich offer card origin, price, and duration
All checks were successful
Build Docker Image / build (push) Successful in 4m40s
All checks were successful
Build Docker Image / build (push) Successful in 4m40s
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
:currency="getOfferData(option.sourceUuid)?.currency"
|
||||
:unit="getOfferData(option.sourceUuid)?.unit"
|
||||
:stages="getRouteStages(option)"
|
||||
:total-time-seconds="option.routes?.[0]?.totalTimeSeconds ?? null"
|
||||
:kyc-profile-uuid="getKycProfileUuid(option.sourceUuid)"
|
||||
@select="navigateToOffer(option.sourceUuid)"
|
||||
/>
|
||||
@@ -209,7 +210,9 @@ const getRouteStages = (option: ProductRouteOption) => {
|
||||
.filter((stage): stage is NonNullable<RouteStageType> => stage !== null)
|
||||
.map((stage) => ({
|
||||
transportType: stage.transportType,
|
||||
distanceKm: stage.distanceKm
|
||||
distanceKm: stage.distanceKm,
|
||||
travelTimeSeconds: stage.travelTimeSeconds,
|
||||
fromName: stage.fromName
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user