diff --git a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts index d10f5000..6c54d5a4 100644 --- a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts +++ b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts @@ -73,10 +73,6 @@ export const getAiDescription = async (prUrl: string) => { throw new Error("Configuration file is empty!"); } - if (!descriptionConfig.enabled) { - throw new Error("AI PR description is disabled!"); - } - const [diff, commitMessages] = await getDescriptionContext(prApiUrl, descriptionConfig.config.source); if (!diff && !commitMessages) {