Fix users latest session computed property

This commit is contained in:
advplyr 2022-11-12 08:03:13 -06:00
parent eb295453fc
commit 3ffc481a54

View File

@ -147,7 +147,7 @@ export default {
return this.listeningStats.today || 0
},
latestSession() {
if (!this.listeningSessions.sessions.length) return null
if (!this.listeningSessions.sessions || !this.listeningSessions.sessions.length) return null
return this.listeningSessions.sessions[0]
}
},