Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jekrimo committed Sep 19, 2024
1 parent c3a0a42 commit fc84471
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/components/messaging/ChatPreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
$: messagePreview = chat.last_message_id === "" ? "No messages sent yet." : chat.last_message_id !== "" && chat.last_message_preview === "" ? "New Attachment" : chat.last_message_preview
function getTimeAgo(dateInput: string | Date) {
console.log(chat.last_message_preview, chat)
const date: Date = typeof dateInput === "string" ? new Date(dateInput) : dateInput
return timeAgo.format(date)
}
Expand Down

0 comments on commit fc84471

Please sign in to comment.