Skip to content

Commit b52bf94

Browse files
authored
feat: Enable Find Resources button when category is selected and client description is empty (#101)
1 parent 2cddebc commit b52bf94

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/src/components/ClientDetailsInput.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ export function ClientDetailsInput({
276276
<Button
277277
type="button"
278278
onClick={onFindResources}
279-
disabled={!clientDescription.trim() || loading}
279+
disabled={
280+
loading ||
281+
(selectedCategories.length === 0 && !clientDescription.trim())
282+
}
280283
className="min-w-[16rem] generate-referrals-button text-lg pt-6 pb-6"
281284
data-testid="findResourcesButton"
282285
>

0 commit comments

Comments
 (0)