Skip to content

Commit

Permalink
🐛 Don't allow an archetype to be assessed if empty
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 committed Sep 25, 2023
1 parent a89c4e5 commit 992a541
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/app/pages/archetypes/archetypes-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ const Archetypes: React.FC = () => {
title: t("actions.assess"),
onClick: () =>
assessSelectedArchetype(archetype),
isDisabled:
!archetype.applications ||
archetype.applications.length === 0,
},
{
title: t("actions.review"),
Expand All @@ -304,6 +307,9 @@ const Archetypes: React.FC = () => {
archetypeId: archetype.id,
})
),
isDisabled:
!archetype.applications ||
archetype.applications.length === 0,
},
{
title: t("actions.edit"),
Expand Down

0 comments on commit 992a541

Please sign in to comment.