From d7794a69c7b9c12d3e47b0b5dafc0b2c3bf095fe Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:35:27 -0500 Subject: [PATCH] refactor(actions/user): Use existing endpoint for fetching trips --- lib/actions/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/user.js b/lib/actions/user.js index 65b7a402f..b6588a198 100644 --- a/lib/actions/user.js +++ b/lib/actions/user.js @@ -122,7 +122,7 @@ export function fetchMonitoredTrips() { const { accessToken, apiBaseUrl, apiKey } = getMiddlewareVariables( getState() ) - const requestUrl = `${apiBaseUrl}${API_MONITORED_TRIP_PATH}/gettrips` + const requestUrl = `${apiBaseUrl}${API_MONITORED_TRIP_PATH}` const { data: trips, status } = await secureFetch( requestUrl,