diff --git a/components/home/search/index.js b/components/home/search/index.js index 72cbc90..219a4d5 100644 --- a/components/home/search/index.js +++ b/components/home/search/index.js @@ -2,8 +2,8 @@ import { ButtonGroup } from "@mui/material"; import Fields from "./Fields"; import { getStateInfo } from "@/lib/getStateInfo"; -function SearchBar() { - const { matchedCity, matchedState } = getStateInfo(); +async function SearchBar() { + const { matchedCity, matchedState } = await getStateInfo(); return (