We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d4b555 commit c2c24d8Copy full SHA for c2c24d8
packages/components/src/utils.tsx
@@ -137,7 +137,6 @@ const copyToClipboard = async (
137
138
try {
139
if ('clipboard' in navigator) {
140
- console.log({ text });
141
await navigator.clipboard.writeText(text);
142
} else {
143
await fallbackCopyToClipboard(text);
@@ -151,9 +150,8 @@ const copyToClipboard = async (
151
150
});
152
announce('Copied!', 'polite', 300);
153
return true;
154
- } catch (error) {
+ } catch {
155
announce('Failed to copy', 'polite', 300);
156
- console.error(`Unable to copy: ${error}`);
157
toastQueue.add({ title: errorMessage ?? 'Unable to copy', status: 'error' });
158
return false;
159
}
0 commit comments