fix(lint): frontend linting

This commit is contained in:
무라쿠모 2024-06-20 03:41:48 +09:00
parent 04b8288eb9
commit 12293da376
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
4 changed files with 5 additions and 5 deletions

View file

@ -85,11 +85,11 @@ onMounted(async () => {
onlineUsersCount.value = _onlineUsersCount; onlineUsersCount.value = _onlineUsersCount;
misskeyApiGet('charts/users', { limit: 2, span: 'day' }).then(chart => { misskeyApiGet('charts/users', { limit: 2, span: 'day' }).then(chart => {
usersComparedToThePrevDay.value = stats.value?.originalUsersCount! - chart.local.total[1]; usersComparedToThePrevDay.value = stats.value?.originalUsersCount ?? 0 - chart.local.total[1];
}); });
misskeyApiGet('charts/notes', { limit: 2, span: 'day' }).then(chart => { misskeyApiGet('charts/notes', { limit: 2, span: 'day' }).then(chart => {
notesComparedToThePrevDay.value = stats.value?.originalNotesCount! - chart.local.total[1]; notesComparedToThePrevDay.value = stats.value?.originalNotesCount ?? 0 - chart.local.total[1];
}); });
fetching.value = false; fetching.value = false;