Skip to content

Commit

Permalink
Daily
Browse files Browse the repository at this point in the history
  • Loading branch information
juaneortiz1 authored May 7, 2024
1 parent f82499d commit 9804da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/secondary/Daily.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Daily = ({ day, handleSubmmit }) => {
<div className='daily-container'>
<h3>Outfits for {day.toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' })}</h3>
<div className='outfit-list'>
{outfits.map((outfit, index) => (
{outfits && outfits.length > 0 && outfits.map((outfit, index) => (
<div
key={index}
className={`outfit-item ${index === selectedOutfitIndex ? 'selected' : ''}`}
Expand Down

0 comments on commit 9804da2

Please sign in to comment.