Skip to content

A local-first personal finance app

Fill category field when selecting 'Create rule' (#886)

shall0pass3fb69e1b1cdf
diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js
index 7e204540a0..874bb5f824 100644
--- a/packages/desktop-client/src/components/accounts/Account.js
+++ b/packages/desktop-client/src/components/accounts/Account.js
@@ -1706,7 +1706,7 @@ class AccountInternal extends React.PureComponent {
{
op: 'set',
field: 'category',
- value: null,
+ value: transactions[0].category,
type: 'id',
},
],
diff --git a/upcoming-release-notes/886.md b/upcoming-release-notes/886.md
new file mode 100644
index 0000000000..d7899a5d51
--- /dev/null
+++ b/upcoming-release-notes/886.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [shall0pass]
+---
+
+Fill category field when selecting 'Create rule' from accounts screen