Skip to content

Commit

Permalink
corrected url
Browse files Browse the repository at this point in the history
  • Loading branch information
juaneortiz1 authored May 8, 2024
1 parent ba919f2 commit 9ccf723
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 @@ -11,7 +11,7 @@ const Daily = ({ day, handleSubmmit }) => {
const fetchOutfitsForDay = async () => {
try {
const formattedDate = day.toLocaleDateString('en-US', { year: 'numeric', month: '2-digit', day: '2-digit' });
const response = await axios.get(`${apiUrl}user/day/aed01e26-1d1b-479e-a2aa-c8acc92f03c0/${formattedDate}`);
const response = await axios.get(`${apiUrl}/day/aed01e26-1d1b-479e-a2aa-c8acc92f03c0/${formattedDate}`);
setOutfits(response.data.outfits);
} catch (error) {
console.error('Error fetching outfits for the day:', error);
Expand Down

0 comments on commit 9ccf723

Please sign in to comment.