diff --git a/src/licence-status-banner/index.jsx b/src/licence-status-banner/index.jsx
index 104205a..23cd126 100644
--- a/src/licence-status-banner/index.jsx
+++ b/src/licence-status-banner/index.jsx
@@ -26,15 +26,23 @@ function LicenceStatusBanner({ licence, licenceType, isPdf, dateFormat, colour,
}
return
- - Granted: {format(issueDate, dateFormat)}
{
- status === 'revoked' && - Revoked: {format(revocationDate, dateFormat)}
+ issueDate != null && - Granted: {format(issueDate, dateFormat)}
}
{
- status === 'expired' && - Expiry: {format(expiryDate, dateFormat)}
+ status === 'revoked' && revocationDate != null && -
+ Revoked: {format(revocationDate, dateFormat)}
+
}
{
- status === 'suspended' && - Suspended: {format(suspendedDate, dateFormat)}
+ status === 'expired' && expiryDate != null && -
+ Expiry: {format(expiryDate, dateFormat)}
+
+ }
+ {
+ status === 'suspended' && suspendedDate != null && -
+ Suspended: {format(suspendedDate, dateFormat)}
+
}
;
};