Skip to content

Commit

Permalink
Merge pull request #114 from alexandermushinskiy/Issues/issue-109
Browse files Browse the repository at this point in the history
Issue #109: Problem while cleaning the send coins form
  • Loading branch information
Senyoret1 authored May 14, 2018
2 parents ecdbd10 + fdb02b4 commit aff62c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class SendSkycoinComponent implements OnInit {
this.walletService.sendSkycoin(wallet, this.form.value.address, this.form.value.amount)
.subscribe(
() => {
this.form.reset();
this.form.reset({wallet: ''});
this.button.setSuccess();
},
error => {
Expand Down Expand Up @@ -81,6 +81,7 @@ export class SendSkycoinComponent implements OnInit {
this.form.controls.amount.updateValueAndValidity();
});
}

private validateAmount(amountControl: FormControl) {
if (!amountControl.value || isNaN(amountControl.value) || parseFloat(amountControl.value) <= 0) {
return { Invalid: true };
Expand Down

0 comments on commit aff62c7

Please sign in to comment.