mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
fix: import contacts
This commit is contained in:
@@ -15,7 +15,7 @@ exports.store = async (req, res, next) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const io = getIO();
|
const io = getIO();
|
||||||
const wbot = getWbot(defaultWhatsapp);
|
const wbot = getWbot(defaultWhatsapp.id);
|
||||||
|
|
||||||
let phoneContacts;
|
let phoneContacts;
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,9 @@ const Contacts = () => {
|
|||||||
window.location.reload(false);
|
window.location.reload(false);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
window.location.reload(false);
|
if (err.response && err.response.data && err.response.data.error) {
|
||||||
|
toast.error(err.response.data.error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -210,8 +212,8 @@ const Contacts = () => {
|
|||||||
title={
|
title={
|
||||||
deletingContact
|
deletingContact
|
||||||
? `${i18n.t("contacts.confirmationModal.deleteTitle")} ${
|
? `${i18n.t("contacts.confirmationModal.deleteTitle")} ${
|
||||||
deletingContact.name
|
deletingContact.name
|
||||||
}?`
|
}?`
|
||||||
: `${i18n.t("contacts.confirmationModal.importTitlte")}`
|
: `${i18n.t("contacts.confirmationModal.importTitlte")}`
|
||||||
}
|
}
|
||||||
open={confirmOpen}
|
open={confirmOpen}
|
||||||
|
|||||||
Reference in New Issue
Block a user