Skip to content

Commit

Permalink
Update EditBook.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shivang21007 authored Sep 12, 2023
1 parent 8700c83 commit 42722f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/EditBook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const EditBook = () => {
};
setLoading(true);
axios
.put(`http://localhost:5555/books/${id}`, data)
.put(`${url}/books/${id}`, data)
.then(() => {
setLoading(false);
enqueueSnackbar('Book Edited successfully', { variant: 'success' });
Expand Down Expand Up @@ -94,4 +94,4 @@ const EditBook = () => {
)
}

export default EditBook
export default EditBook

1 comment on commit 42722f7

@vercel
Copy link

@vercel vercel bot commented on 42722f7 Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

book-store-frontend – ./frontend

book-store-frontend-shivang21007.vercel.app
booky-shop.vercel.app
book-store-frontend-git-main-shivang21007.vercel.app

Please sign in to comment.