diff --git a/src/screens/transfer/screen/delegateScreen.js b/src/screens/transfer/screen/delegateScreen.js index e973a8a25..64d691682 100644 --- a/src/screens/transfer/screen/delegateScreen.js +++ b/src/screens/transfer/screen/delegateScreen.js @@ -69,13 +69,6 @@ class DelegateScreen extends Component { this.amountTextInput = React.createRef(); } - // Component Life Cycles - componentDidUpdate = (prevProps, prevState) => { - if (prevState.step !== this.state.step && this.state.step === 2) { - this._fetchReceivedVestingShare(); - } - }; - // Component Functions _setState = (key, value) => { const { getAccountsWithUsername, balance } = this.props; @@ -247,6 +240,7 @@ class DelegateScreen extends Component { return ( { + this._fetchReceivedVestingShare(); this.setState({ destination: username, usersResult: [], step: 2 }); this.destinationTextInput.current?.blur(); }} @@ -279,7 +273,7 @@ class DelegateScreen extends Component { { - this.setState({ destination: value }); + this.setState({ destination: value, step: 1 }); this._handleOnAmountChange(state, value); }} value={this.state[state]}