diff --git a/source/js/listenbrainz.js b/source/js/listenbrainz.js index cbcb564..acc0e78 100644 --- a/source/js/listenbrainz.js +++ b/source/js/listenbrainz.js @@ -6,6 +6,10 @@ window.addEventListener('DOMContentLoaded', async () => { } const data = await result.json(); + if (data.payload.listens.length === 0) { + return; + } + const listen = data.payload.listens[0]; const listenHtml = `