1
0
mirror of https://github.com/franjsco/tick3t synced 2025-06-05 22:19:18 +02:00

fix: error

This commit is contained in:
Francesco Esposito
2019-08-03 16:47:44 +02:00
parent 93a6c0acef
commit 729a3c4361

View File

@@ -42,7 +42,7 @@ class CreateTicket extends Component {
componentDidMount() {
getAllTicketType()
.then(json => this.setState({ categories: json.data }))
.catch(error => this.setState({ error }));
.catch(error => this.setState({ error: error.message }));
}