From c745ec37b70884839655d2d8fc6ed1ff6fd1d9a8 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Tue, 12 Mar 2019 16:16:02 +0100 Subject: [PATCH] update fiat instead of crypto amount on fiat select --- src/actions/ethereum/SendFormActions.js | 4 ++-- src/actions/ripple/SendFormActions.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/actions/ethereum/SendFormActions.js b/src/actions/ethereum/SendFormActions.js index c3fe2119..8743ff18 100644 --- a/src/actions/ethereum/SendFormActions.js +++ b/src/actions/ethereum/SendFormActions.js @@ -321,8 +321,8 @@ export const onLocalCurrencyChange = (localCurrency: { localCurrency: localCurrency.value, }, }); - // Recalculates amount with new currency rates - dispatch(onLocalAmountChange(state.localAmount)); + // Recalculates local amount with new currency rates + dispatch(onAmountChange(state.amount, true)); }; /* diff --git a/src/actions/ripple/SendFormActions.js b/src/actions/ripple/SendFormActions.js index f7efceaa..14dd94af 100644 --- a/src/actions/ripple/SendFormActions.js +++ b/src/actions/ripple/SendFormActions.js @@ -277,8 +277,8 @@ export const onLocalCurrencyChange = (localCurrency: { localCurrency: localCurrency.value, }, }); - // Recalculates amount with new currency rates - dispatch(onLocalAmountChange(state.localAmount)); + // Recalculates local amount with new currency rates + dispatch(onAmountChange(state.amount, true)); }; /*