Skip to content

Commit

Permalink
Merge pull request #106 from mollie/feature/MOL-451/PICT-261
Browse files Browse the repository at this point in the history
Bugfix: Fix MOL-574: If currency is changed, suddenly the currency is set in the value field
  • Loading branch information
NghiaDTr authored Nov 25, 2024
2 parents 2dea91a + ecd5869 commit 09aa2f4
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,10 @@ const AvailabilityDetailsForm = (props: TAvailabilityDetailsFormProps) => {
let eventName = undefined;
// let value = event.target.value;
switch (event?.target?.name) {
case 'minAmount.currencyCode':
case 'minAmount.amount':
eventName = `${selectedCountry}.${selectedCurrency}.minAmount`;
break;

case 'maxAmount.currencyCode':
case 'maxAmount.amount':
eventName = `${selectedCountry}.${selectedCurrency}.maxAmount`;
break;
Expand All @@ -157,7 +155,6 @@ const AvailabilityDetailsForm = (props: TAvailabilityDetailsFormProps) => {
eventName = `${selectedCountry}.${selectedCurrency}.surchargeCost.percentageAmount`;
break;

case 'surchargeCost.fixedAmount.currencyCode':
case 'surchargeCost.fixedAmount.amount':
eventName = `${selectedCountry}.${selectedCurrency}.surchargeCost.fixedAmount`;
break;
Expand Down

0 comments on commit 09aa2f4

Please sign in to comment.