From fb3ae8135782deac00274737c3588051e4c45c92 Mon Sep 17 00:00:00 2001 From: tentsundue Date: Sat, 18 May 2024 18:44:52 -0700 Subject: [PATCH] Extra period in the url env variable, got rid of it, now the filter works. --- packages/web/src/utils/HomeUtils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/web/src/utils/HomeUtils.js b/packages/web/src/utils/HomeUtils.js index 3e2f22a..88999d3 100644 --- a/packages/web/src/utils/HomeUtils.js +++ b/packages/web/src/utils/HomeUtils.js @@ -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"); @@ -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"); @@ -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"); @@ -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");