Use ternary rather than &&

Use ternary rather than && to avoid display 0.
This commit is contained in:
nixocio 2022-02-17 15:34:03 -05:00
parent 1ed0b70601
commit f20cd8c203

View File

@ -109,12 +109,12 @@ function NotificationTemplateDetail({ template, defaultMessages }) {
value={template.description}
dataCy="nt-detail-description"
/>
{summary_fields.recent_notifications.length && (
{summary_fields.recent_notifications.length ? (
<Detail
label={t`Status`}
value={<StatusLabel status={testStatus} />}
/>
)}
) : null}
{summary_fields.organization ? (
<Detail
label={t`Organization`}