fix: Remove duplicate smsInputData declaration
- Removed second declaration of smsInputData that used undefined 'raw' variable - First declaration already correctly uses data.sms_meta
This commit is contained in:
@@ -16,17 +16,6 @@ export function generateConfirmationFormHTML(data: any): string {
|
||||
status: data.case?.meta?.status || '',
|
||||
};
|
||||
|
||||
// Извлекаем SMS данные
|
||||
const smsInputData = {
|
||||
prefix: raw.prefix || '',
|
||||
session_token: raw.session_token || '',
|
||||
telegram_id: raw.telegram_id || '',
|
||||
claim_id: raw.claim_id || '',
|
||||
unified_id: (raw.propertyName && raw.propertyName.meta && raw.propertyName.meta.unified_id) || '',
|
||||
user_id: (raw.propertyName && raw.propertyName.meta && raw.propertyName.meta.user_id) || '',
|
||||
status: (raw.propertyName && raw.propertyName.meta && raw.propertyName.meta.status) || '',
|
||||
};
|
||||
|
||||
// Утилиты
|
||||
function safeGet(...keys: any[]): any {
|
||||
for (const k of keys) {
|
||||
|
||||
Reference in New Issue
Block a user