(color)
| 330 | } |
| 331 | |
| 332 | showSnackbar(color) { |
| 333 | if (!this.state.isError) this.addAgent(color); |
| 334 | this.setState({ snackbarOpen: true }); |
| 335 | setTimeout(() => this.setState({ isError: false }), 1200); |
| 336 | this.emptyForm(); |
| 337 | } |
| 338 | |
| 339 | handleCloseSnackbar(event, reason) { |
| 340 | if (reason === "clickaway") { |
no test coverage detected