Преглед изворни кода

fix(app): enable submit button when comment cards are present

David Hill пре 8 месеци
родитељ
комит
02456376ce
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/components/prompt-input.tsx

+ 1 - 1
packages/app/src/components/prompt-input.tsx

@@ -2013,7 +2013,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
             >
               <IconButton
                 type="submit"
-                disabled={!prompt.dirty() && !working()}
+                disabled={!prompt.dirty() && !working() && commentCount() === 0}
                 icon={working() ? "stop" : "arrow-up"}
                 variant="primary"
                 class="h-6 w-4.5"