mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 12:18:11 +00:00
Merge branch 'freight/feature/vehicle_2' of github.com:Tria-plc/edr-platform into freight/feature/vehicle_2
This commit is contained in:
@@ -505,7 +505,7 @@ const FirstMilePage = () => {
|
|||||||
let remainingPayment: number | undefined;
|
let remainingPayment: number | undefined;
|
||||||
if (ratesData?.data) {
|
if (ratesData?.data) {
|
||||||
const firstMileRate = ratesData.data.find(
|
const firstMileRate = ratesData.data.find(
|
||||||
(r) => r.rateType === "FIRST_MILE" && r.status === "LIVE"
|
(r) => r.rateType === "FIRST_MILE" && (r.status === "LIVE" || r.status === "DRAFT")
|
||||||
);
|
);
|
||||||
if (firstMileRate) {
|
if (firstMileRate) {
|
||||||
const rateValue = parseFloat(firstMileRate.rateValue);
|
const rateValue = parseFloat(firstMileRate.rateValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user