fix(live-stream-section): Use await for copyText

This commit is contained in:
Hristo Terezov 2021-03-03 16:25:19 -06:00 committed by Дамян Минков
parent a2e2d31dfd
commit 9e29dd063f
1 changed files with 1 additions and 1 deletions

View File

@ -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);