Skip to content

Commit

Permalink
frontend/send: fix bug in send form
Browse files Browse the repository at this point in the history
  • Loading branch information
Beerosagos committed Nov 20, 2023
1 parent b3f9687 commit ab1d485
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontends/web/src/routes/account/send/send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ class Send extends Component<Props, State> {
apiGet(`coins/convert-from-fiat?from=${this.state.fiatUnit}&to=${coinCode}&amount=${value}`)
.then(data => {
if (data.success) {
this.setState({ amount: data.amount });
this.validateAndDisplayFee(false);
this.setState({ amount: data.amount }, () => this.validateAndDisplayFee(false));
} else {
this.setState({ amountError: this.props.t('send.error.invalidAmount') });
}
Expand Down

0 comments on commit ab1d485

Please sign in to comment.