From abc7ac1bce16776188f754753b23790e4e7e716f Mon Sep 17 00:00:00 2001 From: camewell <130561684+camewell071@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:00:22 +0700 Subject: [PATCH] chore: share twitter --- src/modules/Whitelist/steps/index.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/modules/Whitelist/steps/index.tsx b/src/modules/Whitelist/steps/index.tsx index 418d6218b..1d4fd8267 100644 --- a/src/modules/Whitelist/steps/index.tsx +++ b/src/modules/Whitelist/steps/index.tsx @@ -71,12 +71,15 @@ const Steps = () => { const shareUrl = getLink(user?.referral_code || ''); const content = `Welcome to the future of Bitcoin with @BVMnetwork\n\nBitcoin Virtual Machine is the first modular blockchain metaprotocol that lets you launch your Bitcoin L2 blockchain protocol in a few clicks\n\n$BVM public sale starting soon${code}\n\nJoin the allowlist`; - window.open( - `https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent( - content, - )}`, - '_blank', - ); + setTimeout(() => { + window.open( + `https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent( + content, + )}`, + '_blank', + ); + }) + } const onShareModular = () => {