From 300a5b77525f391164a071c6ec59ce9128c1bf53 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Sat, 27 Apr 2019 21:10:33 +0300 Subject: [PATCH] Fixed transfer form issue --- .../walletDetails/container/walletDetailsContainer.js | 4 ++-- src/screens/pinCode/container/pinCodeContainer.js | 1 + src/screens/root/container/rootContainer.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/walletDetails/container/walletDetailsContainer.js b/src/components/walletDetails/container/walletDetailsContainer.js index 5118f202d..a311f121c 100644 --- a/src/components/walletDetails/container/walletDetailsContainer.js +++ b/src/components/walletDetails/container/walletDetailsContainer.js @@ -26,7 +26,7 @@ class WalletContainer extends PureComponent { // Component Life Cycle Functions // Component Functions - _navigate = (transferType, fundType) => { + _navigate = async (transferType, fundType) => { const { dispatch, setPinCodeState, walletData } = this.props; let balance; @@ -41,7 +41,7 @@ class WalletContainer extends PureComponent { break; } - setPinCodeState({ + await setPinCodeState({ navigateTo: ROUTES.SCREENS.TRANSFER, navigateParams: { transferType, fundType, balance }, }); diff --git a/src/screens/pinCode/container/pinCodeContainer.js b/src/screens/pinCode/container/pinCodeContainer.js index 54455662e..bcd96ca58 100644 --- a/src/screens/pinCode/container/pinCodeContainer.js +++ b/src/screens/pinCode/container/pinCodeContainer.js @@ -313,6 +313,7 @@ class PinCodeContainer extends Component { render() { const { currentAccount, intl, isReset } = this.props; const { informationText, isExistUser } = this.state; + return ( (WrappedComponent) => { }, 1 * 60 * 1000); }; - _setPinCodeState = (data) => { - this.setState({ pinCodeStates: { ...data } }); + _setPinCodeState = async (data) => { + return this.setState({ pinCodeStates: { ...data } }); }; _setWrappedComponentState = (data) => {