Skip to content

Commit 55f83fb

Browse files
authored
Merge pull request #23 from BunsDev/main
fix: truncate error
2 parents b8f5ea2 + e9815fd commit 55f83fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/app/x/history.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Image from 'next/image'
2-
import { formatDistanceToNow, fromUnixTime } from 'date-fns'
2+
// import { formatDistanceToNow, fromUnixTime } from 'date-fns'
33
import { cn } from '@/lib/utils'
44
import { kv } from '@vercel/kv'
55
import { Suspense } from 'react'
@@ -79,7 +79,7 @@ const History = async () => {
7979
</div>
8080
</div>
8181
<div>
82-
{truncate(tweetText)
82+
{truncate(tweetText).toString()
8383
.split('\n')
8484
.map((t, i) => (
8585
<p key={i} className="min-h-[16px] leading-4">

0 commit comments

Comments
 (0)