From 4a8f6557e69a4ba005d984bde36a2b7561223d32 Mon Sep 17 00:00:00 2001 From: Guillem Arias Date: Thu, 14 May 2026 20:37:16 +0200 Subject: [PATCH] fix(goals/pledge-modal): helper text reacts to selected account MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The helper paragraph above the amount field was painted off `@goal.any_connected_account?` — a goal-level decision that fires once at modal render and never updates. On a mixed-funding goal (one connected + one manual account linked), the helper read the "transfer" copy regardless of which account the user picked from the dropdown, even though the saved pledge's `kind` is decided per-account by `kind_for_account` in the controller. Stale UI vs. correct data. Render both helper paragraphs hidden, then toggle the right one visible via Stimulus on `change->goal-pledge-preview#accountChanged`. The select renders its `