diff --git a/config/default.cjs b/config/default.cjs index d75c48d..fdbcfad 100755 --- a/config/default.cjs +++ b/config/default.cjs @@ -381,7 +381,7 @@ module.exports = { snapshotIntervals: [], }, media: { - path: '/home/niels/Projects/traxxx/media', + path: './media', transferSources: { local: 'http://localhost:5000/media', s3: 'https://cdn.traxxx.me', diff --git a/pages/users/@username/+Page.vue b/pages/users/@username/+Page.vue index e275ede..06a21d6 100644 --- a/pages/users/@username/+Page.vue +++ b/pages/users/@username/+Page.vue @@ -47,7 +47,7 @@ const pageContext = inject('pageContext'); const profile = pageContext.pageProps.profile; function abbreviateNumber(number) { - return number.toLocaleString('en-US', { notation: 'compact' }); + return number?.toLocaleString('en-US', { notation: 'compact' }) || 0; } console.log(profile.stashes);