mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
fix: Rule notification should not be triggered when category is unassigned (#2214)
This commit is contained in:
parent
fea1baeb1e
commit
470b753833
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class TransactionsController < ApplicationController
|
|||
return false if time_since_last_rule_prompt < 1.day
|
||||
end
|
||||
|
||||
transaction.saved_change_to_category_id? &&
|
||||
transaction.saved_change_to_category_id? && transaction.category_id.present? &&
|
||||
transaction.eligible_for_category_rule?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue