fix(live-stream-section): Use await for copyText
This commit is contained in:
parent
a2e2d31dfd
commit
9e29dd063f
|
@ -37,7 +37,7 @@ function LiveStreamSection({ liveStreamViewURL, t }: Props) {
|
|||
async function onClick() {
|
||||
setIsHovered(false);
|
||||
|
||||
const isCopied = copyText(liveStreamViewURL);
|
||||
const isCopied = await copyText(liveStreamViewURL);
|
||||
|
||||
if (isCopied) {
|
||||
setIsClicked(true);
|
||||
|
|
Loading…
Reference in New Issue