Skip to content

Commit

Permalink
Copy 안되던 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hmu332233 committed Mar 15, 2022
1 parent 4139686 commit d0cd54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/CodeBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ type Props = {
};

function CodeBox({ contents }: Props) {
const handleClick = () => {
navigator.clipboard.writeText(contents);
const handleClick = async () => {
await navigator.clipboard.writeText(contents);
// TODO: 다른 UI로 대체
alert('Copied!');
};
Expand Down

1 comment on commit d0cd54c

@vercel
Copy link

@vercel vercel bot commented on d0cd54c Mar 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.