diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 2b851f6..12f200d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -157,6 +157,8 @@ function App({ navbarComponent }: Props) { const regenerate = () => { if (currentVersion === null) { + // This would be a error that I log to Sentry + addEvent("RegenerateCurrentVersionNull"); toast.error( "No current version set. Please open a Github issue as this shouldn't happen." ); @@ -166,10 +168,13 @@ function App({ navbarComponent }: Props) { // Retrieve the previous command const previousCommand = appHistory[currentVersion]; if (previousCommand.type !== "ai_create") { + addEvent("RegenerateNotFirstVersion"); toast.error("Only the first version can be regenerated."); return; } + addEvent("Regenerate"); + // Re-run the create doCreate(referenceImages, inputMode); };