mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
improvement: blocking reopen a ticket when already a ticket open for that contact
This commit is contained in:
@@ -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}`)) {
|
||||
|
||||
Reference in New Issue
Block a user