Skip to content

Commit c2c24d8

Browse files
chore(components): remove the logs
1 parent 1d4b555 commit c2c24d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/components/src/utils.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ const copyToClipboard = async (
137137

138138
try {
139139
if ('clipboard' in navigator) {
140-
console.log({ text });
141140
await navigator.clipboard.writeText(text);
142141
} else {
143142
await fallbackCopyToClipboard(text);
@@ -151,9 +150,8 @@ const copyToClipboard = async (
151150
});
152151
announce('Copied!', 'polite', 300);
153152
return true;
154-
} catch (error) {
153+
} catch {
155154
announce('Failed to copy', 'polite', 300);
156-
console.error(`Unable to copy: ${error}`);
157155
toastQueue.add({ title: errorMessage ?? 'Unable to copy', status: 'error' });
158156
return false;
159157
}

0 commit comments

Comments
 (0)