mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Missing translation fallback for account subtypes (#1325)
* Fix missing translation fallback for account subtypes in LunchFlow and Mercury The translate_subtypes lambda called t() without a default: fallback, causing "Translation missing" for the ~39 investment subtypes not in the locale files. Now falls back to the :long label from the model's SUBTYPES hash (e.g. "457(b)", "SEP IRA", "UGMA Custodial Account"), matching the pattern used by Accountable#subtype_label_for. https://claude.ai/code/session_01HBJzNkvpky8mKrLkzv83Mm * Default to single-column dashboard --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -333,7 +333,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def dashboard_two_column?
|
||||
preferences&.dig("dashboard_two_column") != false
|
||||
preferences&.dig("dashboard_two_column") == true
|
||||
end
|
||||
|
||||
def update_transactions_preferences(prefs)
|
||||
|
||||
Reference in New Issue
Block a user