Skip to content

Commit

Permalink
Should fix the state API call
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-roper committed Apr 18, 2024
1 parent 9531ad8 commit 59e1154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 59e1154

Please sign in to comment.