The personal finance app for everyone
fix: Rule notification should not be triggered when category is unassigned (#2214)
Akshay Birajdar470b75383328
diff --git a/app/controllers/transactions_controller.rb b/app/controllers/transactions_controller.rbindex 72980dc9..4d47c06b 100644--- a/app/controllers/transactions_controller.rb+++ b/app/controllers/transactions_controller.rb@@ -118,7 +118,7 @@ class TransactionsController < ApplicationControllerreturn false if time_since_last_rule_prompt < 1.dayend- transaction.saved_change_to_category_id? &&+ transaction.saved_change_to_category_id? && transaction.category_id.present? &&transaction.eligible_for_category_rule?end