Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gramovi4a committed May 27, 2024
1 parent 3940880 commit 1670c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/features/contacts/api/contactApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const addContact = (email: string): Promise<ContactPropsResponse> => {
};

export const getAllContactsByUserEmail = (userEmail: string): Promise<ContactsPropsResponse> => {
return axios.get(`${baseURL}/ContactService/users/${userEmail}/contact`, axiosConfig)
return axios.get(`${baseURL}/users/${userEmail}/contact`, axiosConfig)
.then(response => response.data)
.catch(error => {
throw error.response.data;
Expand Down
2 changes: 1 addition & 1 deletion src/features/contacts/components/ContactsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ContactsList: React.FC<ContactsListProps> = ({ change }) => {
const contactsPerPage = 5;

const [contacts, setContacts] = useState<ContactPropsResponse[]>([]);
const userEmail = "f656d97d-63b7-451a-91ee-0e620e652c9e";
const userEmail = "[email protected]";

const [loading, setLoading] = useState<boolean>(false);
const [error, setError] = useState<string | null>(null);
Expand Down

0 comments on commit 1670c58

Please sign in to comment.