mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Set amount to 0 at button click if null
This commit is contained in:
parent
22d3799680
commit
95890c26b1
@ -223,7 +223,7 @@ export default class BookPage extends Component {
|
||||
{ this.state.not_found ? "" :
|
||||
<Grid item xs={12} align="center">
|
||||
<Typography component="h5" variant="h5">
|
||||
You are {this.state.type == 0 ? " buying " : (this.state.type == 1 ? " selling ":" checking ")} BTC for {this.state.currencyCode}
|
||||
You are {this.state.type == 0 ? <b> selling </b> : (this.state.type == 1 ? <b> buying </b> :" looking at all ")} BTC for {this.state.currencyCode}
|
||||
</Typography>
|
||||
</Grid>
|
||||
}
|
||||
|
@ -100,6 +100,8 @@ export default class MakerPage extends Component {
|
||||
}
|
||||
|
||||
handleCreateOfferButtonPressed=()=>{
|
||||
this.state.amount == null ? this.setState({amount: 0}) : null;
|
||||
|
||||
console.log(this.state)
|
||||
const requestOptions = {
|
||||
method: 'POST',
|
||||
|
Loading…
Reference in New Issue
Block a user