class MoneyQuestionPresenter < QuestionPresenter
  include SmartAnswer::FormattingHelper

  def response_label(value)
    format_money(SmartAnswer::Money.new(value))
  end

  def hint_text
    text = [body, suffix_label].reject(&:blank?).compact.join(", ")
    ActionView::Base.full_sanitizer.sanitize(text)
  end
end

class MoneyQuestionPresenter < QuestionPresenter
  include SmartAnswer::FormattingHelper

  def response_label(value)
    format_money(SmartAnswer::Money.new(value))
  end

  def hint_text
    text = [body, hint, suffix_label].reject(&:blank?).compact.join(", ")
    ActionView::Base.full_sanitizer.sanitize(text)
  end
end

Add hint text to money questions
Add hint text to money questions

Previously all money questions had a default hint-text of `in £`
https://github.com/alphagov/smart-answers/pull/4150/commits/dfa0742c44874c4abbcf363451be86f7c9a8e607

This was recently removed for content clarity
https://github.com/alphagov/smart-answers/commit/cc7fb3a11b028fa0c6a125d24c9891cda32d6e94#diff-b627e4f8bfa513f82bdc12cb0d7e22d7

Money questions currently render no hint text.

This change ensures that, should a money question have custom hint text,
it will be correctly rendered.
