From 05219b2938011b8650e01d6de387b91e34a020b6 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 11 Feb 2026 16:25:58 +0100 Subject: [PATCH] Fix tooltip message still showing after click on mobile on profile card --- web/components/widgets/hide-profile-button.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/components/widgets/hide-profile-button.tsx b/web/components/widgets/hide-profile-button.tsx index a12aee72..9c54c0f1 100644 --- a/web/components/widgets/hide-profile-button.tsx +++ b/web/components/widgets/hide-profile-button.tsx @@ -31,12 +31,14 @@ export function HideProfileButton(props: HideProfileButtonProps) { const t = useT() const [submitting, setSubmitting] = useState(false) + const [clicked, setClicked] = useState(false) const onClick = async (e: React.MouseEvent) => { e.preventDefault() if (stopPropagation) e.stopPropagation() if (submitting) return setSubmitting(true) + setClicked(true) try { await api('hide-profile', {hiddenUserId}) onHidden?.(hiddenUserId) @@ -53,7 +55,8 @@ export function HideProfileButton(props: HideProfileButtonProps) { } return ( - +