From 2a55dfb0f2d7b661c16ff922c1ebda22332655df Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Wed, 29 Jul 2026 13:58:18 +0530 Subject: [PATCH] fix: handle promise rejections with .catch() --- src/app/u/client.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/u/client.tsx b/src/app/u/client.tsx index 2c3d7e79..f83392a6 100644 --- a/src/app/u/client.tsx +++ b/src/app/u/client.tsx @@ -460,6 +460,7 @@ function ProfileContent({ uid }: { uid?: string }) { const handleShareProject = (projectId: string) => { const url = window.location.href; copyToClipboard(url).then((copiedSuccessfully) => { +.catch(err => console.error(err)) if (copiedSuccessfully) { showSuccess('Project link copied to clipboard.'); } else {