From 19321dffa9b87ded8158b59193d443ac97090d7e Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Mon, 28 May 2018 16:56:34 +0200 Subject: [PATCH] init selected account in actions --- src/js/actions/SelectedAccountActions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/actions/SelectedAccountActions.js b/src/js/actions/SelectedAccountActions.js index 6f801039..5da4cf99 100644 --- a/src/js/actions/SelectedAccountActions.js +++ b/src/js/actions/SelectedAccountActions.js @@ -97,7 +97,10 @@ export const updateSelectedValues = (prevState: State, action: Action): AsyncAct } dispatch( dispose() ); - if (location.state.send) { + } + + if (needUpdate) { + if (location.state.send && state.sendForm.currency === "") { dispatch( SendFormActions.init( SessionStorageActions.load(location.pathname) ) ); } }