refactor: update SearchBar to use async getStateInfo for improved state handling

This commit is contained in:
hamed
2025-12-10 09:55:09 +03:30
parent 23f20626a6
commit f5530d8c73
+2 -2
View File
@@ -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