Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/admin/abuse_report_details_entity.rb')
-rw-r--r--app/serializers/admin/abuse_report_details_entity.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/serializers/admin/abuse_report_details_entity.rb b/app/serializers/admin/abuse_report_details_entity.rb
index 8a67aabda9e..77b85f239f7 100644
--- a/app/serializers/admin/abuse_report_details_entity.rb
+++ b/app/serializers/admin/abuse_report_details_entity.rb
@@ -35,10 +35,7 @@ module Admin
end
end
- expose :credit_card, if: ->(report) { report.user.credit_card_validation&.holder_name } do
- expose :name do |report|
- report.user.credit_card_validation.holder_name
- end
+ expose :credit_card, if: ->(report) { report.user.credit_card_validation.present? } do
expose :similar_records_count do |report|
report.user.credit_card_validation.similar_records.count
end