1
0
Fork 0
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:
Akshay Birajdar 2025-05-06 18:45:14 +05:30 committed by GitHub
parent fea1baeb1e
commit 470b753833
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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