From 59e1154d28ec8fee35cc4ad9c72ada5e9520909a Mon Sep 17 00:00:00 2001 From: cooper-roper Date: Thu, 18 Apr 2024 10:26:04 -0700 Subject: [PATCH] Should fix the state API call --- src/helpers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/api.js b/src/helpers/api.js index 3f0fd0b..c82cff3 100644 --- a/src/helpers/api.js +++ b/src/helpers/api.js @@ -85,7 +85,7 @@ const convertZipToState = (zipcode) => { }; const getState = async (state) => { - const url = `${BASE_URL}/state/${state.long}`; + const url = `${BASE_URL}/state/${state}`; const response = await fetch(url); const data = await response.json();