diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6455999..01ca77a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -128,11 +128,11 @@ function App() { async function doUpdate() { const updatedHistory = [...history, generatedCode, updateInstruction]; if (isImgCompare) { - const resultImg = await takeScreenshot(); + const resultImage = await takeScreenshot(); doGenerateCode({ generationType: "update", image: referenceImages[0], - resultImg: resultImg, + resultImage: resultImage, history: updatedHistory, }); } else { diff --git a/frontend/src/generateCode.ts b/frontend/src/generateCode.ts index 6dbe547..f9eba85 100644 --- a/frontend/src/generateCode.ts +++ b/frontend/src/generateCode.ts @@ -10,7 +10,7 @@ const STOP_MESSAGE = "Code generation stopped"; export interface CodeGenerationParams { generationType: "create" | "update"; image: string; - resultImg?: string; + resultImage?: string; history?: string[]; // isImageGenerationEnabled: boolean; // TODO: Merge with Settings type in types.ts }