Skip to content

Commit

Permalink
Update Daily.js
Browse files Browse the repository at this point in the history
  • Loading branch information
juaneortiz1 authored May 8, 2024
1 parent 10d6a44 commit fea64bf
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 @@ -10,7 +10,7 @@ const Daily = ({ day, handleSubmmit }) => {
useEffect(() => {
const fetchOutfitsForDay = async () => {
try {
const formattedDate = day.toLocaleDateString('en-US', { year: 'numeric', month: '2-digit', day: '2-digit' }).split('/').reverse().join('-');
const formattedDate = day.toISOString().split('T')[0];
const response = await axios.get(`${apiUrl}day/aed01e26-1d1b-479e-a2aa-c8acc92f03c0/${formattedDate}`);
setOutfits(response.data.outfits);
} catch (error) {
Expand Down

0 comments on commit fea64bf

Please sign in to comment.