diff --git a/package.json b/package.json
index e75bc9a..94533e1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@ukhomeoffice/asl-components",
- "version": "13.4.0",
+ "version": "13.4.1",
"description": "React components for ASL layouts and elements",
"main": "src/index.jsx",
"styles": "styles/index.scss",
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)}
+
}
;
};