Skip to content

Commit

Permalink
CreateExtractor: Enable input only if there's user input (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev authored Mar 21, 2024
1 parent cc906d6 commit 7b4a643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/app/components/CreateExtractor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ const CreateExtractor = ({}) => {
type="submit"
icon={<Icon as={ChatBubbleBottomCenterTextIcon} />}
aria-label="OK"
colorScheme="blue"
colorScheme={userInput === "" ? "gray" : "blue"}
disabled={userInput === ""}
/>
)}
</form>
Expand Down

0 comments on commit 7b4a643

Please sign in to comment.