diff --git a/react/Viewer/Panel/QualificationListItemDate.jsx b/react/Viewer/Panel/QualificationListItemDate.jsx index 11c655a3ec..3125640635 100644 --- a/react/Viewer/Panel/QualificationListItemDate.jsx +++ b/react/Viewer/Panel/QualificationListItemDate.jsx @@ -23,6 +23,7 @@ const QualificationListItemDate = forwardRef( const formattedDate = value ? formatDate({ f, lang, date: value }) : t('Viewer.panel.qualification.noInfo') + const isExpirationDate = name === 'expirationDate' return ( @@ -33,7 +34,7 @@ const QualificationListItemDate = forwardRef( {formattedDate} - {(isExpired(file) || isExpiringSoon(file)) && ( + {isExpirationDate && (isExpired(file) || isExpiringSoon(file)) && ( <> {' ยท '}