diff --git a/app/services/licences/fetch-licence.service.js b/app/services/licences/fetch-licence.service.js index eab33c4ef6..4980747d10 100644 --- a/app/services/licences/fetch-licence.service.js +++ b/app/services/licences/fetch-licence.service.js @@ -28,7 +28,7 @@ async function _data (licence) { ...licence, ends: licence.$ends(), licenceHolder: licence.$licenceHolder(), - licenceName: licence.$licenceName() ?? 'Unregistered licence', + licenceName: licence.$licenceName() ?? null, registeredTo: licence.$registeredTo() ?? null } } diff --git a/test/services/licences/fetch-licence.service.test.js b/test/services/licences/fetch-licence.service.test.js index c7fa5a7950..f0cff0d950 100644 --- a/test/services/licences/fetch-licence.service.test.js +++ b/test/services/licences/fetch-licence.service.test.js @@ -70,7 +70,7 @@ describe('Fetch licence service', () => { expect(result.expiredDate).to.equal(null) expect(result.lapsedDate).to.equal(null) expect(result.licenceHolder).to.equal('Licence Holder Ltd') - expect(result.licenceName).to.equal('Unregistered licence') + expect(result.licenceName).to.equal(null) expect(result.licenceRef).to.equal(licence.licenceRef) expect(result.licenceVersions[1].purposes[0].description).to.equal('Spray Irrigation - Storage') expect(result.region.displayName).to.equal('Avalon')