chore: update lint

This commit is contained in:
Anthony Fu 2023-03-19 13:12:20 +01:00
parent c7558ee7c5
commit 9465c2fe89
20 changed files with 164 additions and 124 deletions

View file

@ -8,7 +8,7 @@ const { items } = defineProps<{
const count = $computed(() => items.items.length)
const isExpanded = ref(false)
const lang = $computed(() => {
return count > 1 || count === 0 ? undefined : items.items[0].status?.language
return (count > 1 || count === 0) ? undefined : items.items[0].status?.language
})
</script>

View file

@ -88,7 +88,11 @@ function groupItems(items: mastodon.v1.Notification[]): NotificationSlot[] {
}
like[notification.type === 'reblog' ? 'reblog' : 'favourite'] = notification
}
likes.sort((a, b) => a.reblog ? !b.reblog || (a.favourite && !b.favourite) ? -1 : 0 : 0)
likes.sort((a, b) => a.reblog
? (!b.reblog || (a.favourite && !b.favourite))
? -1
: 0
: 0)
results.push({
id: `grouped-${id++}`,
type: 'grouped-reblogs-and-favourites',

View file

@ -48,7 +48,7 @@ const saveSettings = async () => {
animateSave = true
try {
const subscription = await updateSubscription()
await updateSubscription()
}
catch (err) {
// todo: handle error