johnamdickson / portfolio-project-5

1 stars 1 forks source link

BUG: Empty cart stopped returning correct message #48

Closed johnamdickson closed 7 months ago

johnamdickson commented 7 months ago

Epic:

Shopping Cart #24 **Bug Description:** The empty cart no longer returned a message for user that it was empty rather returning the order summary. Checked cart items which was returning a reverse iterator. This happened as a result of earlier attempts to order the cart items so that newer ones are shown first. **Actions to Resolve:** Changed logic to check that length of cart items is >0 as the reverse iterator returns an empty array.