FIX: issue with comma instead of dot when creating transaction; closes #16

This commit is contained in:
Overtorment 2018-06-02 22:09:25 +01:00
parent bacad27f90
commit 0897e5a5d2

View file

@ -199,14 +199,18 @@ export default class SendDetails extends Component {
/>
<BlueFormInput
onChangeText={text => this.setState({ amount: text })}
onChangeText={text =>
this.setState({ amount: text.replace(',', '.') })
}
keyboardType={'numeric'}
placeholder={loc.send.details.amount_placeholder}
value={this.state.amount + ''}
/>
<BlueFormInput
onChangeText={text => this.setState({ fee: text })}
onChangeText={text =>
this.setState({ fee: text.replace(',', '.') })
}
keyboardType={'numeric'}
placeholder={loc.send.details.fee_placeholder}
value={this.state.fee + ''}