diff --git a/src/pages/AdminPayments.tsx b/src/pages/AdminPayments.tsx index eea7686..174435d 100644 --- a/src/pages/AdminPayments.tsx +++ b/src/pages/AdminPayments.tsx @@ -478,17 +478,53 @@ export default function AdminPayments() { {/* User info */} - {(payment.user_username || payment.user_telegram_id) && ( + {(payment.user_username || + payment.user_telegram_id || + payment.user_email) && (
{t('admin.payments.user')}:{' '} - {payment.user_username && ( - @{payment.user_username} - )} - {payment.user_username && payment.user_telegram_id && ( - · - )} - {payment.user_telegram_id && ( - TG: {payment.user_telegram_id} + {payment.user_id ? ( + + ) : ( + <> + {payment.user_username && ( + @{payment.user_username} + )} + {payment.user_username && + (payment.user_telegram_id || payment.user_email) && ( + · + )} + {payment.user_telegram_id && ( + + TG: {payment.user_telegram_id} + + )} + {!payment.user_telegram_id && payment.user_email && ( + {payment.user_email} + )} + )}
)} diff --git a/src/types/index.ts b/src/types/index.ts index 5c8d509..ad61a5e 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -567,6 +567,7 @@ export interface PendingPayment { user_id?: number; user_telegram_id?: number; user_username?: string | null; + user_email?: string | null; } export interface ManualCheckResponse {