Skip to content

Commit

Permalink
Removed unneeded conversion and enforcement to float
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
aaroncox committed Jun 2, 2017
1 parent f50d96b commit c5fd07c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/components/Send.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class Send extends Component {
handleSymbolChange = (e: SyntheticEvent, { value }: { value: any }) => {
const detectMemo = this.detectMemo(this.state.to, value);
const newState = {
amount: 0.000,
amount: '',
symbol: value,
memo: detectMemo || '',
memoDetected: (detectMemo)
Expand Down Expand Up @@ -127,9 +127,8 @@ export default class Send extends Component {
this.setState({ memo: cleaned });
}

handleAmountChange = (e: SyntheticEvent, { value }: { value: string }) => {
const cleaned = parseFloat(value.trim());
this.setState({ amount: cleaned });
handleAmountChange = (e: SyntheticEvent, { amount }: { amount: any }) => {
this.setState({ amount });
}

setAmountMaximum = (e: SyntheticEvent) => {
Expand Down

0 comments on commit c5fd07c

Please sign in to comment.