Fix response incorrect

This commit is contained in:
Lucas Oliveira 2023-12-04 17:54:55 -03:00
commit 11c9515e19

View file

@ -36,7 +36,7 @@ export default function Chat({ flow }: ChatType): JSX.Element {
// Define an async function within the useEffect hook
const fetchBuildStatus = async () => {
const response = await getBuildStatus(flow.id);
setIsBuilt(response.built);
setIsBuilt(response.data.built);
};
// Call the async function