Skip to content

Commit

Permalink
217950_Payment_Module_Getting_Delivery_Mechanism_error_when_rejecting…
Browse files Browse the repository at this point in the history
…_a_payment_plan_and_assigning_FSP
  • Loading branch information
marekbiczysko committed Oct 16, 2024
1 parent 865307e commit 9b86316
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const VolumeByDeliveryMechanismSection: React.FC<
color={getDeliveryMechanismColor(vdm.deliveryMechanism.name)}
>
<LabelizedField
label={`${vdm.deliveryMechanism.name} (${vdm.deliveryMechanism.fsp?.name})`}
value={`${vdm.volume} ${paymentPlan.currency} (${vdm.volumeUsd} USD)`}
label={`${vdm.deliveryMechanism.name} (${vdm.deliveryMechanism.fsp?.name ?? '-'})`}
value={`${vdm.volume ?? '0.00'} ${paymentPlan.currency} (${vdm.volumeUsd ?? '0.00'} USD)`}
/>
</FieldBorder>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const VolumeByDeliveryMechanismSection: React.FC<
color={getDeliveryMechanismColor(vdm.deliveryMechanism.name)}
>
<LabelizedField
label={`${vdm.deliveryMechanism.name} (${vdm.deliveryMechanism.fsp?.name})`}
value={`${vdm.volume} ${paymentPlan.currency} (${vdm.volumeUsd} USD)`}
label={`${vdm.deliveryMechanism.name} (${vdm.deliveryMechanism.fsp?.name ?? '-'})`}
value={`${vdm.volume ?? '0.00'} ${paymentPlan.currency} (${vdm.volumeUsd ?? '0.00'} USD)`}
/>
</FieldBorder>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function EditFollowUpSetUpFspPage(): React.ReactElement {

const mappedInitialDeliveryMechanisms =
paymentPlanData.paymentPlan.deliveryMechanisms.map((el) => ({
deliveryMechanism: el.name,
deliveryMechanism: el.code,
fsp: el.fsp?.id || '',
chosenConfiguration: el.chosenConfiguration || '',
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const EditPeopleFollowUpSetUpFspPage = (): React.ReactElement => {

const mappedInitialDeliveryMechanisms =
paymentPlanData.paymentPlan.deliveryMechanisms.map((el) => ({
deliveryMechanism: el.name,
deliveryMechanism: el.code,
fsp: el.fsp?.id || '',
chosenConfiguration: el.chosenConfiguration || '',
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const EditPeopleSetUpFspPage = (): React.ReactElement => {

const mappedInitialDeliveryMechanisms =
paymentPlanData.paymentPlan.deliveryMechanisms.map((el) => ({
deliveryMechanism: el.name,
deliveryMechanism: el.code,
fsp: el.fsp?.id || '',
chosenConfiguration: el.chosenConfiguration || '',
}));
Expand Down

0 comments on commit 9b86316

Please sign in to comment.