bug fixed

This commit is contained in:
Samandar Turgunboyev
2026-03-05 11:49:56 +05:00
parent 382b214e3e
commit a34cf75c57
10 changed files with 249 additions and 292 deletions

View File

@@ -60,8 +60,6 @@ export default function CreateReferrals() {
const validate = () => {
const e: any = {};
if (!form.code || form.code.length !== 9)
e.code = 'Kod aynan 9 ta belgidan iborat bolishi kerak';
if (!form.description || form.description.length < 5)
e.description = 'Tavsif kamida 5 ta belgidan iborat bolishi kerak';

View File

@@ -68,7 +68,7 @@ export function ReferralsTab() {
// Clipboard + Share funksiyasi
const handleCopyAndShare = async (code: string) => {
const referralLink = `https://t.me/infotargetbot/join?startapp=${code}`;
const referralLink = `${code}`;
// Clipboard-ga nusxa olish
await Clipboard.setStringAsync(referralLink);