diff --git a/lib/routes/natgeo/dailyphoto.js b/lib/routes/natgeo/dailyphoto.js index 91b4b571f..8e6c1695d 100644 --- a/lib/routes/natgeo/dailyphoto.js +++ b/lib/routes/natgeo/dailyphoto.js @@ -12,7 +12,7 @@ module.exports = async (ctx) => { const out = items.slice(0, 10).map((item) => { const info = { title: item.image.title, - author: item.image.credit.replace('Photograph by ', ''), + author: item.image.credit && item.image.credit.replace('Photograph by ', ''), link: item.pageUrl, description: `` + item.image.caption, };