Skip to content

A local-first personal finance app

Add "payee is nothing" condition to rule if there is no payee set in a schedule (#4267)

Matt Fiddamana2fc6bdd3161
diff --git a/packages/desktop-client/src/components/schedules/ScheduleDetails.tsx b/packages/desktop-client/src/components/schedules/ScheduleDetails.tsx
index 642549e127..0f5eeae317 100644
--- a/packages/desktop-client/src/components/schedules/ScheduleDetails.tsx
+++ b/packages/desktop-client/src/components/schedules/ScheduleDetails.tsx
@@ -71,7 +71,7 @@ function updateScheduleConditions(
return { ...cond, value };
}
- if (value != null) {
+ if (value != null || field === 'payee') {
return { op, field, value };
}
diff --git a/upcoming-release-notes/4267.md b/upcoming-release-notes/4267.md
new file mode 100644
index 0000000000..931f8f03bf
--- /dev/null
+++ b/upcoming-release-notes/4267.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [matt-fidd]
+---
+
+Add "payee is nothing" condition to rule if there is no payee set in a schedule