Fix incorrect admin login error handling
Change-Id: I68c338b0cb7b261db6c9240cbc5c1e253290e753
diff --git a/client/src/components/ContactList.jsx b/client/src/components/ContactList.jsx
index 578d3c9..1f98091 100644
--- a/client/src/components/ContactList.jsx
+++ b/client/src/components/ContactList.jsx
@@ -61,7 +61,7 @@
const getContactDetails = async () => {
const controller = new AbortController();
try {
- const data = await axiosInstance.get(`/contacts/${currentContact.id}`, {
+ const { data } = await axiosInstance.get(`/contacts/${currentContact.id}`, {
signal: controller.signal,
});
console.log('CONTACT LIST - DETAILS: ', data);