fix: changing between two tickets sometimes shows another tickets message

This commit is contained in:
canove
2020-10-17 14:08:53 -03:00
parent 67a56473e4
commit 18eb5e4502
2 changed files with 13 additions and 5 deletions

View File

@@ -74,6 +74,7 @@ const Ticket = () => {
setTicket(data);
setLoading(false);
} catch (err) {
setLoading(false);
const errorMsg = err.response?.data?.error;
if (errorMsg) {
if (i18n.exists(`backendErrors.${errorMsg}`)) {