mirror of https://github.com/franjsco/tick3t
improvement: check if the ticket id is not empty in search (homepage)
This commit is contained in:
parent
c00ae269f1
commit
e51251a1e0
|
@ -30,6 +30,8 @@ class SearchTicketCard extends Component {
|
|||
handleSubmit(e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (!this.state.ticketId) return null;
|
||||
|
||||
this.setState({
|
||||
submitted: true
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue