We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d47ca6 commit 7b0361dCopy full SHA for 7b0361d
1 file changed
src/hooks/useCopy.tsx
@@ -6,7 +6,7 @@ export const useCopy = () => {
6
const DURATION = 2000;
7
8
const copy = (text?: string) => async () => {
9
- if (text.trim() === '') {
+ if (!text || text.trim() === '') {
10
toaster.push(
11
<Message showIcon type="warning">
12
コピーする内容がありません。
0 commit comments