@depay/widgets 7.1.0 → 7.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.bundle.js +15 -15
- package/dist/esm/index.js +7 -3
- package/dist/umd/index.bundle.js +15 -15
- package/dist/umd/index.js +7 -3
- package/package.json +12 -12
package/dist/esm/index.js
CHANGED
|
@@ -2977,9 +2977,13 @@ var ChangeAmountDialog = (function (props) {
|
|
|
2977
2977
|
var displayedCurrencyCode = amountConfiguration != undefined && amountConfiguration.token ? null : currencyCode;
|
|
2978
2978
|
|
|
2979
2979
|
var changeAmountAndGoBack = function changeAmountAndGoBack() {
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2980
|
+
var newAmount = toValidValue(parseFloat(inputAmount));
|
|
2981
|
+
|
|
2982
|
+
if (newAmount != amount) {
|
|
2983
|
+
setSelectedRoute(undefined);
|
|
2984
|
+
setAmount(newAmount);
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2983
2987
|
navigate('back');
|
|
2984
2988
|
};
|
|
2985
2989
|
|