diff --git a/apps/ui/src/App.tsx b/apps/ui/src/App.tsx
index 8708f17..f534748 100644
--- a/apps/ui/src/App.tsx
+++ b/apps/ui/src/App.tsx
@@ -152,7 +152,6 @@ function App() {
}
/>
} />
-
}
/>
-
{/* Private */}
}>
} />
@@ -175,8 +173,8 @@ function App() {
path="borrowings/:borrowingId"
element={}
/>
+ } />
- } />
diff --git a/apps/ui/src/pages/BookDetails.tsx b/apps/ui/src/pages/BookDetails.tsx
index 404676a..b499946 100644
--- a/apps/ui/src/pages/BookDetails.tsx
+++ b/apps/ui/src/pages/BookDetails.tsx
@@ -50,7 +50,7 @@ function BookDetails(props: IProps) {
navigate(`/login?redirectTo=${prevLocation.pathname}`);
}
const cart = props.cartItems.find((item) => item.book_id === bookId);
- console.log(cart);
+ // console.log(cart);
if (cart?._id) {
cart.quantity++;
diff --git a/apps/ui/src/pages/Checkout.tsx b/apps/ui/src/pages/Checkout.tsx
index afee523..e907133 100644
--- a/apps/ui/src/pages/Checkout.tsx
+++ b/apps/ui/src/pages/Checkout.tsx
@@ -158,7 +158,7 @@ function Checkout(props: IProps) {
// console.log('payment_initial', payment);
// console.log('payments', payments);
- await sleep(1000);
+ // await sleep(1000);
// console.log('lala', props.cartItems);
props.cartItems.map((cart) => {
@@ -167,7 +167,7 @@ function Checkout(props: IProps) {
if (!cart._id) return;
deleteCartById(cart?._id);
});
- props.setCartItems([]);
+ props.setCartItems(() => []);
//delete cart in db
setShowLoading(false);
setShow(false);