mirror of
https://github.com/franjsco/tick3t
synced 2025-06-05 22:19:18 +02:00
improvement: check if the ticket id is not empty in search (homepage)
This commit is contained in:
@ -29,7 +29,9 @@ class SearchTicketCard extends Component {
|
|||||||
|
|
||||||
handleSubmit(e) {
|
handleSubmit(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
if (!this.state.ticketId) return null;
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
submitted: true
|
submitted: true
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user