chore: update copy code message

This commit is contained in:
jinhojang6 2024-11-04 21:38:31 +09:00
parent 434a15de56
commit 5c35e7695d
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8

View File

@ -23,8 +23,9 @@ const CopyCode = ({ referralCode }: Props) => {
<Collapse header="Refer Operators +100 XP">
<Wrapper>
<div className="referral-code">
{`https://dashboard.logos.co/dashboard?referral_code=${referralCode}` ||
'Connect to wallet to get referral code'}
{referralCode?.length
? `https://dashboard.logos.co/dashboard?referral_code=${referralCode}`
: 'Connect to wallet to get referral code'}
</div>
<CopyButton onClick={copyToClipboard}>
<img src="/assets/file-copy-purple.svg" alt="file copy" />