improvement: blocking reopen a ticket when already a ticket open for that contact

This commit is contained in:
canove
2020-10-17 11:58:54 -03:00
parent a0c807301e
commit ce155e817d
5 changed files with 9 additions and 5 deletions

View File

@@ -54,6 +54,7 @@ const TicketActionButtons = ({ ticket }) => {
history.push("/tickets");
}
} catch (err) {
setLoading(false);
const errorMsg = err.response?.data?.error;
if (errorMsg) {
if (i18n.exists(`backendErrors.${errorMsg}`)) {