From ecd5869d0493f10732a95a258f3ccb985801b20b Mon Sep 17 00:00:00 2001 From: Nghia Tran Date: Mon, 25 Nov 2024 11:37:48 +0700 Subject: [PATCH] Bugfix: Fix MOL-574: If currency is changed, suddenly the currency is set in the value field --- .../components/method-details/availability/details-form.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/application/src/components/method-details/availability/details-form.tsx b/application/src/components/method-details/availability/details-form.tsx index 541dbb1..0d1d341 100644 --- a/application/src/components/method-details/availability/details-form.tsx +++ b/application/src/components/method-details/availability/details-form.tsx @@ -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; @@ -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;