Skip to content

Commit

Permalink
message if no rules created yet in fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elie222 committed Jan 1, 2025
1 parent 923a4b9 commit d3f2adc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/web/app/(app)/automation/ReportMistake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ function RuleMismatch({
<div className="mt-4">
<Label name="ruleId" label="Which rule did you expect it to match?" />
</div>

{!rules.length && (
<SectionDescription className="mt-2">
You haven't created any rules yet!
</SectionDescription>
)}

<div className="mt-1 flex flex-col gap-1">
{[{ id: NONE_RULE_ID, name: "None" }, ...rules]
.filter((rule) => rule.id !== (result?.rule?.id || NONE_RULE_ID))
Expand Down

1 comment on commit d3f2adc

@vercel
Copy link

@vercel vercel bot commented on d3f2adc Jan 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.