From ef0dc9e923cdb33958d42a200e6380cd8e69a62e Mon Sep 17 00:00:00 2001 From: codytseng Date: Wed, 21 May 2025 22:57:43 +0800 Subject: [PATCH] fix: increase timeout duration for liking action to 10 seconds --- src/components/NoteStats/LikeButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NoteStats/LikeButton.tsx b/src/components/NoteStats/LikeButton.tsx index c042a90..8d1dec2 100644 --- a/src/components/NoteStats/LikeButton.tsx +++ b/src/components/NoteStats/LikeButton.tsx @@ -36,7 +36,7 @@ export default function LikeButton({ event }: { event: Event }) { if (liking || !pubkey) return setLiking(true) - const timer = setTimeout(() => setLiking(false), 5000) + const timer = setTimeout(() => setLiking(false), 10_000) try { const noteStats = noteStatsMap.get(event.id)