Fixed transfer form issue

This commit is contained in:
Mustafa Buyukcelebi 2019-04-27 21:10:33 +03:00
parent ac0b6a8aaf
commit 789803b1cb
3 changed files with 5 additions and 4 deletions

View File

@ -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 },
});

View File

@ -313,6 +313,7 @@ class PinCodeContainer extends Component {
render() {
const { currentAccount, intl, isReset } = this.props;
const { informationText, isExistUser } = this.state;
return (
<PinCodeScreen
informationText={informationText}

View File

@ -157,8 +157,8 @@ const RootContainer = () => (WrappedComponent) => {
}, 1 * 60 * 1000);
};
_setPinCodeState = (data) => {
this.setState({ pinCodeStates: { ...data } });
_setPinCodeState = async (data) => {
return this.setState({ pinCodeStates: { ...data } });
};
_setWrappedComponentState = (data) => {