refactor: update SearchBar to use async getStateInfo for improved state handling
This commit is contained in:
@@ -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 (
|
||||
<ButtonGroup
|
||||
|
||||
Reference in New Issue
Block a user