Set amount to 0 at button click if null

This commit is contained in:
Reckless_Satoshi 2022-01-10 02:36:37 -08:00
parent 22d3799680
commit 95890c26b1
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 3 additions and 1 deletions

View File

@ -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>
}

View File

@ -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',