update copy function

This commit is contained in:
smanylov
2026-02-10 18:07:53 +07:00
parent ffeeff8be3
commit 78c606ba9e
@@ -39,7 +39,13 @@ export default function ReferralLinkSection() {
if (typeof window === 'undefined' || !navigator.clipboard) {
console.warn('Clipboard API не доступен');
fallbackCopy(textToCopy);
const success = fallbackCopy(textToCopy);
if (success) {
toast.success(`${t('copied')}: ${textToCopy}`);
} else {
toast.error('Не удалось скопировать');
}
return;
}