From 14a540701338832c95cf05e5c34322c3ba620adf Mon Sep 17 00:00:00 2001 From: Akshay Birajdar Date: Tue, 6 May 2025 10:38:15 +0530 Subject: [PATCH] fix: Rule notification should not be triggered when category is unassigned --- app/controllers/transactions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/transactions_controller.rb b/app/controllers/transactions_controller.rb index 72980dc9..4d47c06b 100644 --- a/app/controllers/transactions_controller.rb +++ b/app/controllers/transactions_controller.rb @@ -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 -- 2.53.0