Add null check on application in dispute viewer (#19851)

rebase/4.0.0rc2^2
Jeremy Kescher 2022-11-07 02:40:17 +00:00 committed by GitHub
parent ffe735344b
commit 02a34252ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -59,8 +59,9 @@
= media_attachment.file_file_name = media_attachment.file_file_name
.strike-card__statuses-list__item__meta .strike-card__statuses-list__item__meta
%time.formatted{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at) %time.formatted{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at)
· - unless status.application.nil?
= status.application.name ·
= status.application.name
- else - else
.one-liner= t('disputes.strikes.status', id: status_id) .one-liner= t('disputes.strikes.status', id: status_id)
.strike-card__statuses-list__item__meta .strike-card__statuses-list__item__meta