Skip to content

Commit

Permalink
code refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
manish committed Dec 13, 2024
1 parent 332e04e commit 2f726e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/Cart/Cart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Cart = ({ deliveryFee }) => {
</div>
<hr />
<br />
{!food_list.length ?
{!food_list ?
<p style={{ display: 'flex', justifyContent: 'center', color: 'red', fontWeight: '500', marginBottom: '20px' }}>No cart items to display</p>
: food_list.map((item) => {
if (cartItems[item._id] > 0) {
Expand Down

0 comments on commit 2f726e0

Please sign in to comment.