Skip to content

Commit

Permalink
Extra period in the url env variable, got rid of it, now the filter w…
Browse files Browse the repository at this point in the history
…orks.
  • Loading branch information
tentsundue committed May 19, 2024
1 parent c524acb commit fb3ae81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/web/src/utils/HomeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const retrieveItemsWithinWeek = async (
try {
setLoading(false);
const response = await axios.get(
`${import.meta.env.VITE_.REACT_APP_AWS_BACKEND_URL}/items/week`
`${import.meta.env.VITE_REACT_APP_AWS_BACKEND_URL}/items/week`
);
setData(response.data.map((item) => ({ ...item, id: item.id })));
setDateRangeFilter("Last 7 Days");
Expand All @@ -49,7 +49,7 @@ const retrieveItemsWithinTwoWeeks = async (
try {
setLoading(false);
const response = await axios.get(
`${import.meta.env.VITE_.REACT_APP_AWS_BACKEND_URL}/items/two_weeks`
`${import.meta.env.VITE_REACT_APP_AWS_BACKEND_URL}/items/two_weeks`
);
setData(response.data.map((item) => ({ ...item, id: item.id })));
setDateRangeFilter("Last 14 Days");
Expand All @@ -69,7 +69,7 @@ const retrieveItemsWithinMonth = async (
try {
setLoading(false);
const response = await axios.get(
`${import.meta.env.VITE_.REACT_APP_AWS_BACKEND_URL}/items/month`
`${import.meta.env.VITE_REACT_APP_AWS_BACKEND_URL}/items/month`
);
setData(response.data.map((item) => ({ ...item, id: item.id })));
setDateRangeFilter("Last 30 Days");
Expand All @@ -89,7 +89,7 @@ const retrieveItemsWithinYear = async (
try {
setLoading(false);
const response = await axios.get(
`${import.meta.env.VITE_.REACT_APP_AWS_BACKEND_URL}/items/year`
`${import.meta.env.VITE_REACT_APP_AWS_BACKEND_URL}/items/year`
);
setData(response.data.map((item) => ({ ...item, id: item.id })));
setDateRangeFilter("This Year");
Expand Down

0 comments on commit fb3ae81

Please sign in to comment.