Skip to content

Commit

Permalink
[CRIMAPP-1508] Fix premium bonds content (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinKruglov authored Jan 9, 2025
1 parent 14a74e3 commit 0409bdd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/presenters/summary/sections/partner_premium_bonds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module Summary
module Sections
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
class PartnerPremiumBonds < Sections::BaseSection
include HasDynamicSubject

def show?
show_partner_premium_bonds? && super
end
Expand Down Expand Up @@ -39,6 +41,10 @@ def show_partner_premium_bonds?
def partner_have_premium_bonds?
YesNoAnswer.new(capital.partner_has_premium_bonds).yes?
end

def subject_type
SubjectType.new(:partner)
end
end
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
end
Expand Down
2 changes: 2 additions & 0 deletions app/presenters/summary/sections/premium_bonds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module Summary
module Sections
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
class PremiumBonds < Sections::BaseSection
include HasDynamicSubject

def show?
shown_premium_bonds? && super
end
Expand Down
4 changes: 2 additions & 2 deletions config/locales/en/summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ en:
national_savings_or_post_office: National Savings or Post Office account
other: Other cash investment
partner_employment_details: Employment
premium_bonds: "Premium Bonds: client"
partner_premium_bonds: "Premium Bonds: partner"
premium_bonds: Premium Bonds
partner_premium_bonds: Premium Bonds
investments: Investments
investment:
bond: Investment bond
Expand Down

0 comments on commit 0409bdd

Please sign in to comment.