Browse Source

fix: increase timeout duration for liking action to 10 seconds

imwald
codytseng 10 months ago
parent
commit
ef0dc9e923
  1. 2
      src/components/NoteStats/LikeButton.tsx

2
src/components/NoteStats/LikeButton.tsx

@ -36,7 +36,7 @@ export default function LikeButton({ event }: { event: Event }) { @@ -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)

Loading…
Cancel
Save